#CDB242#CDB242

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

Color values

HEX#CDB242
RGBrgb(205, 178, 66)
HSLhsl(48, 58%, 53%)
HSVhsv(48, 68%, 80%)
CMYKcmyk(0%, 13.2%, 67.8%, 19.6%)
CIE-LABlab(73.03, -2.68, 58.52)
CIE-LCHlch(73.03, 58.58, 92.62°)
OKLaboklab(76.67% -0.0125 0.1316)
OKLCHoklch(76.67% 0.132 95.4)
XYZxyz(42.0826, 45.2155, 11.6641)
Luminance0.4521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB242 #425DCD
analogous
#CD6C42 #CDB242 #A3CD42
triadic
#CDB242 #42CDB2 #B242CD
tetradic
#CDB242 #42CD6C #425DCD #CD42A3
square
#CDB242 #42CD6C #425DCD #CD42A3
split-complementary
#CDB242 #42A3CD #6C42CD
monochromatic
#76651F #A68E2C #CDB242 #DAC672 #E7D9A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDB242#FFFFFF#000000##000000
##CDB2421.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)
#C4AE33
Deuteranopia (green-blind)
#CBB748
Tritanopia (blue-blind)
#DDA59B
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cdb242;
/* rgb */ color: rgb(205, 178, 66);
/* oklch */ color: oklch(76.7% 0.132 95.4);
Tailwind
colors: {
  custom: {
    50: '#e0c87c',
    500: '#cdb242',
    950: '#000000',
  },
}
SCSS
$custom: #cdb242;
$custom-light: #e0c87c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb242",
  "rgb": {
    "r": 205,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 48.345,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.76667,
    "c": 0.13221,
    "h": 95.4
  },
  "luminance": 0.45213
}

Semantic roles & 50–950 ramp

primary
#CDB242
secondary
#97A3D3
accent
#65E146
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB242

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

Preview Lab → · Contrast checker → · Palette generator →

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