#CDB252#CDB252

#CDB252 is a light, moderate yellow. Relative luminance 0.454; OKLCH L 76.8% C 0.120 H 93.7°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#CDB252
RGBrgb(205, 178, 82)
HSLhsl(47, 55%, 56%)
HSVhsv(47, 60%, 80%)
CMYKcmyk(0%, 13.2%, 60%, 19.6%)
CIE-LABlab(73.17, -1.67, 51.60)
CIE-LCHlch(73.17, 51.63, 91.85°)
OKLaboklab(76.82% -0.0077 0.1193)
OKLCHoklch(76.82% 0.12 93.7)
XYZxyz(42.6221, 45.4312, 14.5051)
Luminance0.4543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB252 #526DCD
analogous
#CD7552 #CDB252 #ABCD52
triadic
#CDB252 #52CDB2 #B252CD
tetradic
#CDB252 #52CD75 #526DCD #CD52AB
square
#CDB252 #52CD75 #526DCD #CD52AB
split-complementary
#CDB252 #52ABCD #7552CD
monochromatic
#806C25 #AF9433 #CDB252 #DBC781 #E8DCB1

Accessibility & contrast

On white

2.08
#CDB252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.09
#CDB252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB252
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB252#FFFFFF#000000##000000
##CDB2521.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF48
Deuteranopia (green-blind)
#CAB756
Tritanopia (blue-blind)
#DCA69D
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cdb252;
/* rgb */ color: rgb(205, 178, 82);
/* oklch */ color: oklch(76.8% 0.120 93.7);
Tailwind
colors: {
  custom: {
    50: '#dfc886',
    500: '#cdb252',
    950: '#000000',
  },
}
SCSS
$custom: #cdb252;
$custom-light: #dfc886;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb252",
  "rgb": {
    "r": 205,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 46.829,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.76824,
    "c": 0.11952,
    "h": 93.7
  },
  "luminance": 0.45429
}

Semantic roles & 50–950 ramp

primary
#CDB252
secondary
#A4AFD7
accent
#6ADE49
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CDB252

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

Preview Lab → · Contrast checker → · Palette generator →

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