#CDB542#CDB542

#CDB542 is a light, vivid yellow. Relative luminance 0.464; OKLCH L 77.3% C 0.134 H 97.3°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#CDB542
RGBrgb(205, 181, 66)
HSLhsl(50, 58%, 53%)
HSVhsv(50, 68%, 80%)
CMYKcmyk(0%, 11.7%, 67.8%, 19.6%)
CIE-LABlab(73.82, -4.25, 59.33)
CIE-LCHlch(73.82, 59.48, 94.10°)
OKLaboklab(77.29% -0.017 0.1333)
OKLCHoklch(77.29% 0.134 97.3)
XYZxyz(42.6861, 46.4223, 11.8652)
Luminance0.4642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB542 #425ACD
analogous
#CD6F42 #CDB542 #A0CD42
triadic
#CDB542 #42CDB5 #B542CD
tetradic
#CDB542 #42CD6F #425ACD #CD42A0
square
#CDB542 #42CD6F #425ACD #CD42A0
split-complementary
#CDB542 #42A0CD #6F42CD
monochromatic
#76671F #A6912C #CDB542 #DAC872 #E7DBA3

Accessibility & contrast

On white

2.04
#CDB542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#CDB542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB542
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB542#FFFFFF#000000##000000
##CDB5421.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B133
Deuteranopia (green-blind)
#CDB948
Tritanopia (blue-blind)
#DDA89D
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cdb542;
/* rgb */ color: rgb(205, 181, 66);
/* oklch */ color: oklch(77.3% 0.134 97.3);
Tailwind
colors: {
  custom: {
    50: '#e0ca7c',
    500: '#cdb542',
    950: '#000000',
  },
}
SCSS
$custom: #cdb542;
$custom-light: #e0ca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb542",
  "rgb": {
    "r": 205,
    "g": 181,
    "b": 66
  },
  "hsl": {
    "h": 49.64,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.77289,
    "c": 0.13441,
    "h": 97.3
  },
  "luminance": 0.4642
}

Semantic roles & 50–950 ramp

primary
#CDB542
secondary
#97A2D3
accent
#61E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB542

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

Preview Lab → · Contrast checker → · Palette generator →

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