#CDB158#CDB158

#CDB158 is a light, moderate yellow. Relative luminance 0.451; OKLCH L 76.7% C 0.113 H 92.1°. Best body text is #000000 at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#CDB158
RGBrgb(205, 177, 88)
HSLhsl(46, 54%, 57%)
HSVhsv(46, 57%, 80%)
CMYKcmyk(0%, 13.7%, 57.1%, 19.6%)
CIE-LABlab(72.98, -0.69, 48.55)
CIE-LCHlch(72.98, 48.55, 90.82°)
OKLaboklab(76.69% -0.0042 0.1134)
OKLCHoklch(76.69% 0.113 92.1)
XYZxyz(42.6622, 45.1301, 15.6945)
Luminance0.4513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB158 #5874CD
analogous
#CD7758 #CDB158 #AFCD58
triadic
#CDB158 #58CDB1 #B158CD
tetradic
#CDB158 #58CD77 #5874CD #CD58AF
square
#CDB158 #58CD77 #5874CD #CD58AF
split-complementary
#CDB158 #58AFCD #7758CD
monochromatic
#836D27 #B29435 #CDB158 #DBC787 #E9DDB6

Accessibility & contrast

On white

2.09
#CDB158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.03
#CDB158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB158
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB158#FFFFFF#000000##000000
##CDB1581.002.0910.0310.03
#FFFFFF2.091.0021.0021.00
#00000010.0321.001.001.00
##00000010.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AE4F
Deuteranopia (green-blind)
#C8B75C
Tritanopia (blue-blind)
#DCA59D
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cdb158;
/* rgb */ color: rgb(205, 177, 88);
/* oklch */ color: oklch(76.7% 0.113 92.1);
Tailwind
colors: {
  custom: {
    50: '#dfc88a',
    500: '#cdb158',
    950: '#000000',
  },
}
SCSS
$custom: #cdb158;
$custom-light: #dfc88a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb158",
  "rgb": {
    "r": 205,
    "g": 177,
    "b": 88
  },
  "hsl": {
    "h": 45.641,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.76688,
    "c": 0.11349,
    "h": 92.1
  },
  "luminance": 0.45128
}

Semantic roles & 50–950 ramp

primary
#CDB158
secondary
#A9B4D8
accent
#6EDD4B
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #CDB158

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

Preview Lab → · Contrast checker → · Palette generator →

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