#CDCA38#CDCA38

#CDCA38 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.7% C 0.159 H 108.3°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#CDCA38
RGBrgb(205, 202, 56)
HSLhsl(59, 60%, 51%)
HSVhsv(59, 73%, 80%)
CMYKcmyk(0%, 1.5%, 72.7%, 19.6%)
CIE-LABlab(79.33, -15.49, 68.54)
CIE-LCHlch(79.33, 70.26, 102.74°)
OKLaboklab(81.65% -0.0498 0.151)
OKLCHoklch(81.65% 0.159 108.3)
XYZxyz(47.0130, 55.5072, 11.9781)
Luminance0.5551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA38 #383BCD
analogous
#CD7F38 #CDCA38 #85CD38
triadic
#CDCA38 #38CDCA #CA38CD
tetradic
#CDCA38 #38CD7F #383BCD #CD3885
square
#CDCA38 #38CD7F #383BCD #CD3885
split-complementary
#CDCA38 #3885CD #7F38CD
monochromatic
#6F6D1C #A09D28 #CDCA38 #D9D769 #E6E49A

Accessibility & contrast

On white

1.74
#CDCA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#CDCA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA38
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA38#FFFFFF#000000##000000
##CDCA381.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC21B
Deuteranopia (green-blind)
#DDC743
Tritanopia (blue-blind)
#DCBDAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdca38;
/* rgb */ color: rgb(205, 202, 56);
/* oklch */ color: oklch(81.7% 0.159 108.3);
Tailwind
colors: {
  custom: {
    50: '#e0d979',
    500: '#cdca38',
    950: '#000000',
  },
}
SCSS
$custom: #cdca38;
$custom-light: #e0d979;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca38",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 56
  },
  "hsl": {
    "h": 58.792,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.81652,
    "c": 0.15905,
    "h": 108.3
  },
  "luminance": 0.55506
}

Semantic roles & 50–950 ramp

primary
#CDCA38
secondary
#313378
accent
#48E345
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDCA38

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

Preview Lab → · Contrast checker → · Palette generator →

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