#CDC038#CDC038

#CDC038 is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.5% C 0.150 H 103.8°. Best body text is #000000 at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#CDC038
RGBrgb(205, 192, 56)
HSLhsl(55, 60%, 51%)
HSVhsv(55, 73%, 80%)
CMYKcmyk(0%, 6.3%, 72.7%, 19.6%)
CIE-LABlab(76.66, -10.44, 65.99)
CIE-LCHlch(76.66, 66.81, 98.99°)
OKLaboklab(79.52% -0.0356 0.1456)
OKLCHoklch(79.52% 0.15 103.8)
XYZxyz(44.7422, 50.9658, 11.2212)
Luminance0.5096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC038 #3845CD
analogous
#CD7538 #CDC038 #8FCD38
triadic
#CDC038 #38CDC0 #C038CD
tetradic
#CDC038 #38CD75 #3845CD #CD388F
square
#CDC038 #38CD75 #3845CD #CD388F
split-complementary
#CDC038 #388FCD #7538CD
monochromatic
#6F681C #A09528 #CDC038 #D9CF69 #E6DF9A

Accessibility & contrast

On white

1.88
#CDC038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.19
#CDC038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC038
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC038#FFFFFF#000000##000000
##CDC0381.001.8811.1911.19
#FFFFFF1.881.0021.0021.00
#00000011.1921.001.001.00
##00000011.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA1F
Deuteranopia (green-blind)
#D5C042
Tritanopia (blue-blind)
#DCB3A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc038;
/* rgb */ color: rgb(205, 192, 56);
/* oklch */ color: oklch(79.5% 0.150 103.8);
Tailwind
colors: {
  custom: {
    50: '#e0d278',
    500: '#cdc038',
    950: '#000000',
  },
}
SCSS
$custom: #cdc038;
$custom-light: #e0d278;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc038",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 56
  },
  "hsl": {
    "h": 54.765,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79521,
    "c": 0.14994,
    "h": 103.8
  },
  "luminance": 0.50964
}

Semantic roles & 50–950 ramp

primary
#CDC038
secondary
#313778
accent
#53E345
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CDC038

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

Preview Lab → · Contrast checker → · Palette generator →

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