#CDCB40#CDCB40

#CDCB40 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 81.9% C 0.155 H 108.6°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CDCB40
RGBrgb(205, 203, 64)
HSLhsl(59, 59%, 53%)
HSVhsv(59, 69%, 80%)
CMYKcmyk(0%, 1%, 68.8%, 19.6%)
CIE-LABlab(79.65, -15.61, 66.00)
CIE-LCHlch(79.65, 67.82, 103.31°)
OKLaboklab(81.92% -0.0494 0.1471)
OKLCHoklch(81.92% 0.155 108.6)
XYZxyz(47.4599, 56.0626, 13.1707)
Luminance0.5606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCB40 #4042CD
analogous
#CD8440 #CDCB40 #88CD40
triadic
#CDCB40 #40CDCB #CB40CD
tetradic
#CDCB40 #40CD84 #4042CD #CD4088
square
#CDCB40 #40CD84 #4042CD #CD4088
split-complementary
#CDCB40 #4088CD #8440CD
monochromatic
#74731E #A5A32B #CDCB40 #DAD871 #E6E5A1

Accessibility & contrast

On white

1.72
#CDCB40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#CDCB40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCB40
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCB40#FFFFFF#000000##000000
##CDCB401.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC32A
Deuteranopia (green-blind)
#DDC84A
Tritanopia (blue-blind)
#DBBEAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdcb40;
/* rgb */ color: rgb(205, 203, 64);
/* oklch */ color: oklch(81.9% 0.155 108.6);
Tailwind
colors: {
  custom: {
    50: '#e0da7d',
    500: '#cdcb40',
    950: '#000000',
  },
}
SCSS
$custom: #cdcb40;
$custom-light: #e0da7d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcb40",
  "rgb": {
    "r": 205,
    "g": 203,
    "b": 64
  },
  "hsl": {
    "h": 59.149,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.8192,
    "c": 0.15514,
    "h": 108.6
  },
  "luminance": 0.56061
}

Semantic roles & 50–950 ramp

primary
#CDCB40
secondary
#34357D
accent
#48E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDCB40

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

Preview Lab → · Contrast checker → · Palette generator →

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