#cbac28
a balanced, vivid yellow · warm · closest name: Goldenrod
Token name suggestion: True Citron
#cbac28 is a balanced vivid yellow, 49° on the wheel and 16/100 on the cool side. Put black text on it (9.47:1). As text it scores 2.22:1 on white — use #87721B instead. Nearest name is Goldenrod, nearest Tailwind family is yellow.
At a glance
Every number on this page in one read: what #cbac28 is made of, how bright it looks, and which way it leans.
Left edge is grey, right edge is full chroma; top is white, bottom is black. The dot is #cbac28.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Green carries most of what the eye calls brightness — that is why WCAG weights it 0.7152.
Every format
| HEX | #cbac28 |
| HEX (8-digit) | #cbac28ff |
| RGB | rgb(203, 172, 40) |
| RGBA | rgba(203, 172, 40, 1) |
| HSL | hsl(49, 67%, 48%) |
| HSV / HSB | hsv(49, 80%, 80%) |
| HWB | hwb(49 16% 20%) |
| CMYK | cmyk(0%, 15%, 80%, 20%) |
| LAB | lab(71.1 -1.5 66.1) |
| LCH | lch(71.1 66.2 91.3) |
| OKLCH | oklch(0.751 0.143 94.8) |
| XYZ (D65) | xyz(39.77, 42.36, 8.09) |
| Decimal | 13347880 |
| Display P3 | color(display-p3 0.796 0.675 0.157) |
| Web-safe | #CC9933 |
Copy-ready code
/* CSS */
color: #cbac28;
background-color: #cbac28;
/* CSS custom property */
--brand: #cbac28;
/* Tailwind (arbitrary) */
class="text-[#cbac28] bg-[#cbac28]"
/* SCSS */
$brand: #cbac28;
/* SwiftUI */
Color(red: 0.796, green: 0.675, blue: 0.157)
/* UIKit */
UIColor(red: 0.796, green: 0.675, blue: 0.157, alpha: 1)
/* Android XML */
<color name="brand">#CBAC28</color>
/* Android Compose */
Color(0xFFCBAC28)
/* Flutter */
Color(0xFFCBAC28)
/* Python / OpenCV (BGR) */
(40, 172, 203)
/* Python / PIL (RGB) */
(203, 172, 40)
/* Java AWT */
new Color(203, 172, 40)
/* .NET */
Color.FromArgb(255, 203, 172, 40)
/* OpenGL / Unity (0–1) */
(0.7961f, 0.6745f, 0.1569f, 1f)
/* LaTeX */
\definecolor{brand}{RGB}{203,172,40}/* mix without leaving CSS */ background: color-mix(in oklab, #cbac28 85%, white); border-color: color-mix(in oklab, #cbac28 40%, transparent); /* theme-aware in one line */ color: light-dark(#6B5A15, #EEE9D3); /* relative colour syntax */ --hover: hsl(from #cbac28 h s calc(l - 7));
Design tokens
The same ramp in the four formats a team actually needs. Paste one and the whole palette lands with it.
:root {
--brand-50: #FBFAF3;
--brand-100: #F8F5E8;
--brand-200: #F1EACA;
--brand-300: #EDDEA1;
--brand-400: #E3CE72;
--brand-500: #DABD44;
--brand-600: #cbac28;
--brand-700: #AA9022;
--brand-800: #88741B;
--brand-900: #635517;
--brand-950: #3E350F;
--brand: #cbac28;
--brand-ink: #000000;
--brand-surface: #FAF9F4;
--brand-border: #EDE4C0;
--brand-hover: #AD9322;
--brand-pressed: #8F791C;
}
@media (prefers-color-scheme: dark) {
:root {
--brand-surface: #242114;
--brand-ink: #EEE9D3;
}
}theme: {
extend: {
colors: {
brand: {
50: '#FBFAF3',
100: '#F8F5E8',
200: '#F1EACA',
300: '#EDDEA1',
400: '#E3CE72',
500: '#DABD44',
600: '#cbac28',
700: '#AA9022',
800: '#88741B',
900: '#635517',
950: '#3E350F',
DEFAULT: '#cbac28',
},
},
},
}$brand: (
'50': #FBFAF3,
'100': #F8F5E8,
'200': #F1EACA,
'300': #EDDEA1,
'400': #E3CE72,
'500': #DABD44,
'600': #cbac28,
'700': #AA9022,
'800': #88741B,
'900': #635517,
'950': #3E350F,
);
$brand-base: #cbac28;
$brand-ink: #000000;
@function brand($step) { @return map-get($brand, $step); }{
"color": {
"brand": {
"50": { "$value": "#FBFAF3", "$type": "color" },
"100": { "$value": "#F8F5E8", "$type": "color" },
"200": { "$value": "#F1EACA", "$type": "color" },
"300": { "$value": "#EDDEA1", "$type": "color" },
"400": { "$value": "#E3CE72", "$type": "color" },
"500": { "$value": "#DABD44", "$type": "color" },
"600": { "$value": "#cbac28", "$type": "color" },
"700": { "$value": "#AA9022", "$type": "color" },
"800": { "$value": "#88741B", "$type": "color" },
"900": { "$value": "#635517", "$type": "color" },
"950": { "$value": "#3E350F", "$type": "color" }
},
"brandInk": { "$value": "#000000", "$type": "color" }
}
}Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Make it accessible
A contrast checker tells you that you failed. This tells you what to ship instead — same hue, same saturation, lightness moved only as far as WCAG demands.
Large text — 24px regular or 18.66px bold and above — only needs 3:1, so #AD9322 is enough for headings on white. Non-text elements such as icons, chart strokes and focus rings also sit at 3:1 under WCAG 2.2 (1.4.11).
Accessibility — WCAG contrast
Contrast is symmetric, so each row covers both directions: #cbac28 as text on that neutral, and that neutral as text on #cbac28.
| Neutral | Ratio | Verdict | Both directions |
|---|---|---|---|
| White#ffffff | 2.22:1 | AAAA lgAAA | AaAa |
| Slate 50#f8fafc | 2.12:1 | AAAA lgAAA | AaAa |
| Slate 100#f1f5f9 | 2.02:1 | AAAA lgAAA | AaAa |
| Slate 200#e2e8f0 | 1.80:1 | AAAA lgAAA | AaAa |
| Slate 300#cbd5e1 | 1.49:1 | AAAA lgAAA | AaAa |
| Slate 400#94a3b8 | 1.16:1 | AAAA lgAAA | AaAa |
| Slate 500#64748b | 2.15:1 | AAAA lgAAA | AaAa |
| Slate 600#475569 | 3.42:1 | AAAA lgAAA | AaAa |
| Slate 700#334155 | 4.67:1 | AAAA lgAAA | AaAa |
| Slate 800#1e293b | 6.60:1 | AAAA lgAAA | AaAa |
| Slate 900#0f172a | 8.05:1 | AAAA lgAAA | AaAa |
| Black#000000 | 9.47:1 | AAAA lgAAA | AaAa |
Roughly one man in twelve has some form of colour vision deficiency. If any of the three panels above is hard to tell apart from a neighbouring colour in your palette, add a shape, an icon or a label so the meaning does not rest on hue alone.
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #cbac28 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
The same eleven steps expressed in OKLCH, where equal lightness numbers actually look equally spaced. HSL ramps go muddy in the yellows and washed out in the blues; this one does not. Modern browsers render it natively — the hex ramp above is the fallback.
:root {
--brand-50: oklch(0.97 0.036 94.8);
--brand-100: oklch(0.94 0.057 94.8);
--brand-200: oklch(0.88 0.086 94.8);
--brand-300: oklch(0.80 0.112 94.8);
--brand-400: oklch(0.72 0.132 94.8);
--brand-500: oklch(0.64 0.143 94.8);
--brand-600: oklch(0.56 0.143 94.8);
--brand-700: oklch(0.48 0.135 94.8);
--brand-800: oklch(0.40 0.120 94.8);
--brand-900: oklch(0.32 0.100 94.8);
--brand-950: oklch(0.24 0.079 94.8);
}Colors that work with #cbac28
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
In real components
The same eight roles, wired into the interface patterns you will actually build with them. Every state below is a computed value, not a mock-up.
Focus ring uses the light variant so the field still reads as one shape.
The file stays available for seven days. Download it before it expires.
How to use #cbac28
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ✓Chart series and data categories
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Thin strokes and 1px borders — they disappear on light UI
- ⚠Pairing with a same-lightness hue — edges vibrate
Meaning and mood
What a colour in this family tends to signal, and how this particular chroma and lightness change the reading.
The most visible hue at low light levels, which is why it owns warnings, hazard tape and value retail.
This is a confident chroma: strong enough to lead a brand, restrained enough to live in an interface all day. The mid lightness keeps it versatile in both themes.
Almost never passes contrast against white. Treat it as a surface or a marker, not as text.
- FormalityMedium
- EnergyMedium-high
- Weight52/100
- TemperatureWarm
- ApproachabilityHigh
Colour associations are cultural and vary by market. Treat these as a starting point for a conversation with your audience, not a finding about them.
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #2847CB | Directly opposite — maximum tension | |
| Analogous left | #CB5A28 | Neighbour, quieter | |
| Analogous right | #98CB28 | Neighbour, quieter | |
| Split-complement 1 | #2898CB | Contrast without the clash | |
| Split-complement 2 | #5A28CB | Contrast without the clash | |
| Triadic 1 | #28CBAC | Even thirds — balanced and loud | |
| Triadic 2 | #AC28CB | Even thirds — balanced and loud | |
| Tetradic | #28CB5A | Fourth corner of the square scheme |
#cbac28 sits at 49°. Every dot is a harmony position and links to its own page in the table alongside.
RGB percentages
CMYK percentages
Total ink coverage is 116%. Most commercial presses cap around 300% — above that, sheets stop drying properly.
Color previews
#cbac28 text on a black background
contrast 9.47:1
#cbac28 text on a white background
contrast 2.22:1
#cbac28 on grey
2.02:1
#cbac28 on its own surface
2.10:1
#cbac28 on its dark surface
7.27:1
CSS3 live lab
The quick brown fox
color: #cbac28;
background-color: #cbac28;
Glowing headline
text-shadow: 2px 2px 8px #cbac28;
Soft neon halo
text-shadow: 0 0 14px rgba(203, 172, 40, 0.45);
box-shadow: 0 12px 32px -8px rgba(203, 172, 40, 0.45);
border: 3px solid #cbac28; background: linear-gradient(135deg, #cbac28, #7DCB28);
Gradient headline
background: linear-gradient(90deg, #cbac28, #54CB28); -webkit-background-clip: text; color: transparent;
outline: 2px solid #cbac28; outline-offset: 3px;
Marked up text
text-decoration-color: #cbac28; caret-color: #cbac28;
border-left: 4px solid #cbac28;
background: #FBF8EA; box-shadow: inset 0 0 0 2px #cbac28;
background: conic-gradient(#cbac28 68%, #e2e8f0 0);
Transparency
What each alpha value actually composites to. The top row is #cbac28 over white; the bottom row is the same alpha over a checkerboard, so you can see what survives on a photo or a video.
Bottom row of hexes is the flattened result over white — use those when a design tool refuses transparency, or when you need a solid fallback.
rgba(203, 172, 40, 0.5) rgb(203 172 40 / 50%) #cbac2880 hsl(49 67% 48% / 50%) color-mix(in srgb, #cbac28 50%, transparent)
| Alpha | 8-digit hex | Flat on white |
|---|---|---|
| 10% | #cbac281a | #FAF7EA |
| 20% | #cbac2833 | #F5EED4 |
| 40% | #cbac2866 | #EADEA9 |
| 60% | #cbac2899 | #E0CD7E |
| 80% | #cbac28cc | #D5BD53 |
Gradients from #cbac28
Six recipes, each built from this hex and shown with the exact CSS that produced it.
background: linear-gradient(135deg, #DDC353, #cbac28 45%, #6B5A15);
background: linear-gradient(120deg, #cbac28, #62B123);
background: linear-gradient(90deg, #cbac28, #2847CB);
background: radial-gradient(120% 120% at 20% 0%, #E2CC6C 0%, #cbac28 45%, #6B5A15 100%);
background: linear-gradient(180deg, #FAF9F4, #ffffff);
background: radial-gradient(60% 60% at 15% 20%, #DB6B4A 0%, transparent 60%), radial-gradient(55% 55% at 85% 15%, #9AD839 0%, transparent 60%), radial-gradient(70% 70% at 50% 95%, #6B5A15 0%, transparent 65%), #cbac28;
Monochromatic scale
Palettes built from #cbac28
Shades — darker
Tints — lighter
Tones — desaturated
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Versace Gold (#d4af37) — ΔE2000 2.4 away, with its history, psychology and brand usage.
#cbac28 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
Holds up across typical panel gamma. Still worth checking on an uncalibrated laptop, where mid-tones shift most.
Usable as-is on a dark surface at 9.47:1.
Explore nearby colors
Small, deliberate steps away from this hex — useful when you are hunting for the version of a colour that finally feels right.
#cbac28, answered
What color is #cbac28?
#cbac28 is a balanced vivid yellow, closest to Goldenrod (ΔE2000 6.2). It sits at 49° on the hue wheel with 67% saturation and 48% lightness, which reads as warm.
What is the RGB value of #cbac28?
rgb(203, 172, 40) — 203 red, 172 green and 40 blue out of 255, or 79.6% / 67.5% / 15.7% by channel.
What is #cbac28 in HSL and HSV?
hsl(49, 67%, 48%) and hsv(49, 80%, 80%). HSL is what CSS takes; HSV is what your design tool's picker shows, which is why the saturation numbers rarely match.
Is #cbac28 a light or a dark color?
It is a mid-tone. Relative luminance is 0.4235 and perceived brightness is 68%, so black text on it reaches 9.47:1.
Should I use black or white text on #cbac28?
Black. It scores 9.47:1 against #cbac28, versus 2.22:1 for white — AAA at any size.
Is #cbac28 accessible on a white background?
#cbac28 on white scores 2.22:1, which fails WCAG AA at every size. Darken it to #87721B to reach 4.5:1, or #655514 for 7:1.
What is the complementary color of #cbac28?
#2847CB sits directly opposite on the wheel. Softer options are the split-complements #2898CB and #5A28CB, which give the same contrast with far less vibration.
What colors go well with #cbac28?
For interface work: #FAF9F4 as the surface, #EDE4C0 for borders, #9B8C4B for secondary text, #236FD0 as an accent and #6B5A15 for hover and pressed states. For a palette, the analogous pair #CB5A28 and #98CB28 stays calm, while #2847CB is the loudest partner.
What is #cbac28 in CMYK for printing?
cmyk(0%, 15%, 80%, 20%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #cbac28 warm or cool?
Warm — it scores 16 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB8728; nudged cooler, #B0CD26.
Which Tailwind color is closest to #cbac28?
The yellow family — its 500 step is #eab308, ΔE2000 7 away. That is a visible difference, so define #cbac28 as a custom token rather than reaching for the built-in.
How do I use #cbac28 in Tailwind CSS?
Inline it as an arbitrary value with bg-[#cbac28] or text-[#cbac28], or register the whole ramp under theme.extend.colors.brand so you get bg-brand-500 and friends. The generated 50–950 scale on this page is ready to paste into your config.
What is #cbac28 with 50% opacity?
rgba(203, 172, 40, 0.5), or #cbac2880 in eight-digit hex. Over white that composites to #E5D694; over black, #665614.
Is #cbac28 a web-safe color?
No. The nearest web-safe colour is #CC9933, ΔE2000 8.5 away. The palette only matters for legacy displays and some email clients now.
What does the color #cbac28 mean?
As a yellow, it reads optimistic, alert, cheap-and-cheerful. The most visible hue at low light levels, which is why it owns warnings, hazard tape and value retail. At this chroma the effect is amplified — it will dominate whatever sits beside it.
What gradient works with #cbac28?
The safest is same-hue elevation: linear-gradient(135deg, #DDC353, #cbac28 45%, #6B5A15). For more colour, a short hue run to #62B123 keeps it rich without turning muddy.
Work with #cbac28 in the Color Lab
Every tool opens with this colour already loaded.
Every value on this page is computed from #cbac28 at request time — conversions, contrast ratios and ΔE distances are calculated, never looked up.