#CDB151#CDB151

#CDB151 is a light, moderate yellow. Relative luminance 0.450; OKLCH L 76.6% C 0.120 H 93.1°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#CDB151
RGBrgb(205, 177, 81)
HSLhsl(46, 55%, 56%)
HSVhsv(46, 60%, 80%)
CMYKcmyk(0%, 13.7%, 60.5%, 19.6%)
CIE-LABlab(72.90, -1.21, 51.77)
CIE-LCHlch(72.90, 51.78, 91.34°)
OKLaboklab(76.61% -0.0065 0.1195)
OKLCHoklch(76.61% 0.12 93.1)
XYZxyz(42.3861, 45.0196, 14.2400)
Luminance0.4502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB151 #516DCD
analogous
#CD7351 #CDB151 #ABCD51
triadic
#CDB151 #51CDB1 #B151CD
tetradic
#CDB151 #51CD73 #516DCD #CD51AB
square
#CDB151 #51CD73 #516DCD #CD51AB
split-complementary
#CDB151 #51ABCD #7351CD
monochromatic
#7F6B25 #AF9332 #CDB151 #DBC681 #E8DCB0

Accessibility & contrast

On white

2.10
#CDB151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.00
#CDB151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB151
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB151#FFFFFF#000000##000000
##CDB1511.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AE47
Deuteranopia (green-blind)
#C9B655
Tritanopia (blue-blind)
#DCA49C
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cdb151;
/* rgb */ color: rgb(205, 177, 81);
/* oklch */ color: oklch(76.6% 0.120 93.1);
Tailwind
colors: {
  custom: {
    50: '#dfc885',
    500: '#cdb151',
    950: '#000000',
  },
}
SCSS
$custom: #cdb151;
$custom-light: #dfc885;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb151",
  "rgb": {
    "r": 205,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 46.452,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.76608,
    "c": 0.11967,
    "h": 93.1
  },
  "luminance": 0.45017
}

Semantic roles & 50–950 ramp

primary
#CDB151
secondary
#A3AFD7
accent
#6BDF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CDB151

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

Preview Lab → · Contrast checker → · Palette generator →

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