#CCD138#CCD138

#CCD138 is a very light, vivid yellow. Relative luminance 0.587; OKLCH L 83.1% C 0.166 H 111.4°. Best body text is #000000 at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#CCD138
RGBrgb(204, 209, 56)
HSLhsl(62, 62%, 52%)
HSVhsv(62, 73%, 82%)
CMYKcmyk(2.4%, 0%, 73.2%, 18%)
CIE-LABlab(81.14, -19.38, 70.21)
CIE-LCHlch(81.14, 72.84, 105.43°)
OKLaboklab(83.08% -0.0606 0.1546)
OKLCHoklch(83.08% 0.166 111.4)
XYZxyz(48.4177, 58.7251, 12.5252)
Luminance0.5872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD138 #3D38D1
analogous
#D18A38 #CCD138 #80D138
triadic
#CCD138 #38CCD1 #D138CC
tetradic
#CCD138 #38D18A #3D38D1 #D13880
square
#CCD138 #38D18A #3D38D1 #D13880
split-complementary
#CCD138 #3880D1 #8A38D1
monochromatic
#71741B #A1A626 #CCD138 #D9DC6A #E5E89B

Accessibility & contrast

On white

1.65
#CCD138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.74
#CCD138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD138
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD138#FFFFFF#000000##000000
##CCD1381.001.6512.7412.74
#FFFFFF1.651.0021.0021.00
#00000012.7421.001.001.00
##00000012.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C817
Deuteranopia (green-blind)
#E2CB44
Tritanopia (blue-blind)
#DAC4B4
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #ccd138;
/* rgb */ color: rgb(204, 209, 56);
/* oklch */ color: oklch(83.1% 0.166 111.4);
Tailwind
colors: {
  custom: {
    50: '#dfde7a',
    500: '#ccd138',
    950: '#000000',
  },
}
SCSS
$custom: #ccd138;
$custom-light: #dfde7a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd138",
  "rgb": {
    "r": 204,
    "g": 209,
    "b": 56
  },
  "hsl": {
    "h": 61.961,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.83077,
    "c": 0.1661,
    "h": 111.4
  },
  "luminance": 0.58724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCD138

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

Preview Lab → · Contrast checker → · Palette generator →

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