#CDBA42#CDBA42

#CDBA42 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 78.3% C 0.138 H 100.2°. Best body text is #000000 at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#CDBA42
RGBrgb(205, 186, 66)
HSLhsl(52, 58%, 53%)
HSVhsv(52, 68%, 80%)
CMYKcmyk(0%, 9.3%, 67.8%, 19.6%)
CIE-LABlab(75.13, -6.85, 60.68)
CIE-LCHlch(75.13, 61.07, 96.44°)
OKLaboklab(78.33% -0.0244 0.1362)
OKLCHoklch(78.33% 0.138 100.2)
XYZxyz(43.7210, 48.4923, 12.2102)
Luminance0.4849 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDBA42 #4255CD
analogous
#CD7542 #CDBA42 #9ACD42
triadic
#CDBA42 #42CDBA #BA42CD
tetradic
#CDBA42 #42CD75 #4255CD #CD429A
square
#CDBA42 #42CD75 #4255CD #CD429A
split-complementary
#CDBA42 #429ACD #7542CD
monochromatic
#766A1F #A6952C #CDBA42 #DACC72 #E7DDA3

Accessibility & contrast

On white

1.96
#CDBA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.70
#CDBA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDBA42
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDBA42#FFFFFF#000000##000000
##CDBA421.001.9610.7010.70
#FFFFFF1.961.0021.0021.00
#00000010.7021.001.001.00
##00000010.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB532
Deuteranopia (green-blind)
#D1BC49
Tritanopia (blue-blind)
#DCADA2
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #cdba42;
/* rgb */ color: rgb(205, 186, 66);
/* oklch */ color: oklch(78.3% 0.138 100.2);
Tailwind
colors: {
  custom: {
    50: '#e0ce7d',
    500: '#cdba42',
    950: '#000000',
  },
}
SCSS
$custom: #cdba42;
$custom-light: #e0ce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdba42",
  "rgb": {
    "r": 205,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 51.799,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.78331,
    "c": 0.13836,
    "h": 100.2
  },
  "luminance": 0.4849
}

Semantic roles & 50–950 ramp

primary
#CDBA42
secondary
#97A0D3
accent
#5CE146
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDBA42

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

Preview Lab → · Contrast checker → · Palette generator →

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