#CDB240#CDB240

#CDB240 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.6% C 0.134 H 95.6°. Best body text is #000000 at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#CDB240
RGBrgb(205, 178, 64)
HSLhsl(49, 59%, 53%)
HSVhsv(49, 69%, 80%)
CMYKcmyk(0%, 13.2%, 68.8%, 19.6%)
CIE-LABlab(73.02, -2.79, 59.33)
CIE-LCHlch(73.02, 59.39, 92.69°)
OKLaboklab(76.65% -0.0131 0.133)
OKLCHoklch(76.65% 0.134 95.6)
XYZxyz(42.0247, 45.1923, 11.3589)
Luminance0.4519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB240 #405BCD
analogous
#CD6C40 #CDB240 #A1CD40
triadic
#CDB240 #40CDB2 #B240CD
tetradic
#CDB240 #40CD6C #405BCD #CD40A1
square
#CDB240 #40CD6C #405BCD #CD40A1
split-complementary
#CDB240 #40A1CD #6C40CD
monochromatic
#74641E #A58D2B #CDB240 #DAC671 #E6D9A1

Accessibility & contrast

On white

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

On black

10.04
#CDB240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB240
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB240#FFFFFF#000000##000000
##CDB2401.002.0910.0410.04
#FFFFFF2.091.0021.0021.00
#00000010.0421.001.001.00
##00000010.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE31
Deuteranopia (green-blind)
#CBB746
Tritanopia (blue-blind)
#DDA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cdb240;
/* rgb */ color: rgb(205, 178, 64);
/* oklch */ color: oklch(76.6% 0.134 95.6);
Tailwind
colors: {
  custom: {
    50: '#e0c87b',
    500: '#cdb240',
    950: '#000000',
  },
}
SCSS
$custom: #cdb240;
$custom-light: #e0c87b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb240",
  "rgb": {
    "r": 205,
    "g": 178,
    "b": 64
  },
  "hsl": {
    "h": 48.511,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.7665,
    "c": 0.13362,
    "h": 95.6
  },
  "luminance": 0.4519
}

Semantic roles & 50–950 ramp

primary
#CDB240
secondary
#96A2D3
accent
#64E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB240

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

Preview Lab → · Contrast checker → · Palette generator →

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