#CDB840#CDB840

#CDB840 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.9% C 0.138 H 99.2°. Best body text is #000000 at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#CDB840
RGBrgb(205, 184, 64)
HSLhsl(51, 59%, 53%)
HSVhsv(51, 69%, 80%)
CMYKcmyk(0%, 10.2%, 68.8%, 19.6%)
CIE-LABlab(74.59, -5.92, 60.93)
CIE-LCHlch(74.59, 61.22, 95.55°)
OKLaboklab(77.9% -0.022 0.1364)
OKLCHoklch(77.9% 0.138 99.2)
XYZxyz(43.2447, 47.6323, 11.7656)
Luminance0.4763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB840 #4055CD
analogous
#CD7240 #CDB840 #9BCD40
triadic
#CDB840 #40CDB8 #B840CD
tetradic
#CDB840 #40CD72 #4055CD #CD409B
square
#CDB840 #40CD72 #4055CD #CD409B
split-complementary
#CDB840 #409BCD #7240CD
monochromatic
#74671E #A5932B #CDB840 #DACA71 #E6DCA1

Accessibility & contrast

On white

2.00
#CDB840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.53
#CDB840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB840
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB840#FFFFFF#000000##000000
##CDB8401.002.0010.5310.53
#FFFFFF2.001.0021.0021.00
#00000010.5321.001.001.00
##00000010.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B32F
Deuteranopia (green-blind)
#CFBB47
Tritanopia (blue-blind)
#DDABA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cdb840;
/* rgb */ color: rgb(205, 184, 64);
/* oklch */ color: oklch(77.9% 0.138 99.2);
Tailwind
colors: {
  custom: {
    50: '#e0cd7c',
    500: '#cdb840',
    950: '#000000',
  },
}
SCSS
$custom: #cdb840;
$custom-light: #e0cd7c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb840",
  "rgb": {
    "r": 205,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 51.064,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.77897,
    "c": 0.13814,
    "h": 99.2
  },
  "luminance": 0.4763
}

Semantic roles & 50–950 ramp

primary
#CDB840
secondary
#969FD3
accent
#5DE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB840

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

Preview Lab → · Contrast checker → · Palette generator →

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