#CDD138#CDD138

#CDD138 is a very light, vivid yellow. Relative luminance 0.589; OKLCH L 83.2% C 0.166 H 111.0°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#CDD138
RGBrgb(205, 209, 56)
HSLhsl(62, 62%, 52%)
HSVhsv(62, 73%, 82%)
CMYKcmyk(1.9%, 0%, 73.2%, 18%)
CIE-LABlab(81.22, -18.97, 70.32)
CIE-LCHlch(81.22, 72.83, 105.09°)
OKLaboklab(83.16% -0.0595 0.1548)
OKLCHoklch(83.16% 0.166 111)
XYZxyz(48.6928, 58.8669, 12.5381)
Luminance0.5887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD138 #3C38D1
analogous
#D18938 #CDD138 #80D138
triadic
#CDD138 #38CDD1 #D138CD
tetradic
#CDD138 #38D189 #3C38D1 #D13880
square
#CDD138 #38D189 #3C38D1 #D13880
split-complementary
#CDD138 #3880D1 #8938D1
monochromatic
#71741B #A2A626 #CDD138 #D9DC6A #E6E89B

Accessibility & contrast

On white

1.64
#CDD138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.77
#CDD138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD138
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD138#FFFFFF#000000##000000
##CDD1381.001.6412.7712.77
#FFFFFF1.641.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C817
Deuteranopia (green-blind)
#E2CC44
Tritanopia (blue-blind)
#DBC4B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cdd138;
/* rgb */ color: rgb(205, 209, 56);
/* oklch */ color: oklch(83.2% 0.166 111.0);
Tailwind
colors: {
  custom: {
    50: '#e0de7a',
    500: '#cdd138',
    950: '#000000',
  },
}
SCSS
$custom: #cdd138;
$custom-light: #e0de7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd138",
  "rgb": {
    "r": 205,
    "g": 209,
    "b": 56
  },
  "hsl": {
    "h": 61.569,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.83158,
    "c": 0.16586,
    "h": 111
  },
  "luminance": 0.58866
}

Semantic roles & 50–950 ramp

primary
#CDD138
secondary
#33317C
accent
#42E647
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CDD138

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

Preview Lab → · Contrast checker → · Palette generator →

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