#CDB042#CDB042

#CDB042 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 76.3% C 0.131 H 94.2°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#CDB042
RGBrgb(205, 176, 66)
HSLhsl(47, 58%, 53%)
HSVhsv(47, 68%, 80%)
CMYKcmyk(0%, 14.1%, 67.8%, 19.6%)
CIE-LABlab(72.51, -1.63, 57.98)
CIE-LCHlch(72.51, 58.00, 91.61°)
OKLaboklab(76.26% -0.0095 0.1305)
OKLCHoklch(76.26% 0.131 94.2)
XYZxyz(41.6876, 44.4254, 11.5324)
Luminance0.4442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB042 #425FCD
analogous
#CD6A42 #CDB042 #A4CD42
triadic
#CDB042 #42CDB0 #B042CD
tetradic
#CDB042 #42CD6A #425FCD #CD42A4
square
#CDB042 #42CD6A #425FCD #CD42A4
split-complementary
#CDB042 #42A4CD #6A42CD
monochromatic
#76631F #A68C2C #CDB042 #DAC472 #E7D8A3

Accessibility & contrast

On white

2.12
#CDB042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.88
#CDB042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB042
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB042#FFFFFF#000000##000000
##CDB0421.002.129.889.88
#FFFFFF2.121.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD34
Deuteranopia (green-blind)
#C9B648
Tritanopia (blue-blind)
#DDA399
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cdb042;
/* rgb */ color: rgb(205, 176, 66);
/* oklch */ color: oklch(76.3% 0.131 94.2);
Tailwind
colors: {
  custom: {
    50: '#e0c77c',
    500: '#cdb042',
    950: '#000000',
  },
}
SCSS
$custom: #cdb042;
$custom-light: #e0c77c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb042",
  "rgb": {
    "r": 205,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 47.482,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.76255,
    "c": 0.13082,
    "h": 94.2
  },
  "luminance": 0.44423
}

Semantic roles & 50–950 ramp

primary
#CDB042
secondary
#97A4D3
accent
#67E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB042

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

Preview Lab → · Contrast checker → · Palette generator →

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