#CBAC40#CBAC40

#CBAC40 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 75.2% C 0.129 H 92.8°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#CBAC40
RGBrgb(203, 172, 64)
HSLhsl(47, 57%, 52%)
HSVhsv(47, 68%, 80%)
CMYKcmyk(0%, 15.3%, 68.5%, 20.4%)
CIE-LABlab(71.26, -0.49, 57.47)
CIE-LCHlch(71.26, 57.47, 90.48°)
OKLaboklab(75.22% -0.0064 0.1291)
OKLCHoklch(75.22% 0.129 92.8)
XYZxyz(40.3086, 42.5740, 10.9440)
Luminance0.4257 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CBAC40 #405FCB
analogous
#CB6740 #CBAC40 #A4CB40
triadic
#CBAC40 #40CBAC #AC40CB
tetradic
#CBAC40 #40CB67 #405FCB #CB40A4
square
#CBAC40 #40CB67 #405FCB #CB40A4
split-complementary
#CBAC40 #40A4CB #6740CB
monochromatic
#725F1F #A2882C #CBAC40 #D8C170 #E5D6A0

Accessibility & contrast

On white

2.21
#CBAC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#CBAC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CBAC40
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CBAC40#FFFFFF#000000##000000
##CBAC401.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA932
Deuteranopia (green-blind)
#C6B245
Tritanopia (blue-blind)
#DB9F96
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cbac40;
/* rgb */ color: rgb(203, 172, 64);
/* oklch */ color: oklch(75.2% 0.129 92.8);
Tailwind
colors: {
  custom: {
    50: '#dfc47a',
    500: '#cbac40',
    950: '#000000',
  },
}
SCSS
$custom: #cbac40;
$custom-light: #dfc47a;
$custom-dark: #000000;
JSON
{
  "hex": "#cbac40",
  "rgb": {
    "r": 203,
    "g": 172,
    "b": 64
  },
  "hsl": {
    "h": 46.619,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7522,
    "c": 0.12927,
    "h": 92.8
  },
  "luminance": 0.42572
}

Semantic roles & 50–950 ramp

primary
#CBAC40
secondary
#95A3D2
accent
#69E047
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16120A
muted
#84817C

Preview Lab

Preview with #CBAC40

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CBAC40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva