#CDD338#CDD338

#CDD338 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 83.6% C 0.168 H 111.8°. Best body text is #000000 at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#CDD338
RGBrgb(205, 211, 56)
HSLhsl(62, 64%, 52%)
HSVhsv(62, 73%, 83%)
CMYKcmyk(2.8%, 0%, 73.5%, 17.3%)
CIE-LABlab(81.76, -19.95, 70.82)
CIE-LCHlch(81.76, 73.58, 105.73°)
OKLaboklab(83.59% -0.0623 0.1559)
OKLCHoklch(83.59% 0.168 111.8)
XYZxyz(49.1866, 59.8544, 12.7027)
Luminance0.5985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD338 #3E38D3
analogous
#D38C38 #CDD338 #7FD338
triadic
#CDD338 #38CDD3 #D338CD
tetradic
#CDD338 #38D38C #3E38D3 #D3387F
square
#CDD338 #38D38C #3E38D3 #D3387F
split-complementary
#CDD338 #387FD3 #8C38D3
monochromatic
#73761A #A3A925 #CDD338 #DADE6A #E6E99C

Accessibility & contrast

On white

1.62
#CDD338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.97
#CDD338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD338
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD338#FFFFFF#000000##000000
##CDD3381.001.6212.9712.97
#FFFFFF1.621.0021.0021.00
#00000012.9721.001.001.00
##00000012.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C916
Deuteranopia (green-blind)
#E4CD45
Tritanopia (blue-blind)
#DBC6B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cdd338;
/* rgb */ color: rgb(205, 211, 56);
/* oklch */ color: oklch(83.6% 0.168 111.8);
Tailwind
colors: {
  custom: {
    50: '#e0e07a',
    500: '#cdd338',
    950: '#000000',
  },
}
SCSS
$custom: #cdd338;
$custom-light: #e0e07a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd338",
  "rgb": {
    "r": 205,
    "g": 211,
    "b": 56
  },
  "hsl": {
    "h": 62.323,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.83591,
    "c": 0.16787,
    "h": 111.8
  },
  "luminance": 0.59853
}

Semantic roles & 50–950 ramp

primary
#CDD338
secondary
#34307F
accent
#41E747
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CDD338

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

Preview Lab → · Contrast checker → · Palette generator →

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