#CDCC38#CDCC38

#CDCC38 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.1% C 0.161 H 109.1°. Best body text is #000000 at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#CDCC38
RGBrgb(205, 204, 56)
HSLhsl(60, 60%, 51%)
HSVhsv(60, 73%, 80%)
CMYKcmyk(0%, 0.5%, 72.7%, 19.6%)
CIE-LABlab(79.87, -16.49, 69.04)
CIE-LCHlch(79.87, 70.99, 103.43°)
OKLaboklab(82.08% -0.0526 0.1521)
OKLCHoklch(82.08% 0.161 109.1)
XYZxyz(47.4853, 56.4519, 12.1356)
Luminance0.5645 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC38 #3839CD
analogous
#CD8138 #CDCC38 #83CD38
triadic
#CDCC38 #38CDCC #CC38CD
tetradic
#CDCC38 #38CD81 #3839CD #CD3883
square
#CDCC38 #38CD81 #3839CD #CD3883
split-complementary
#CDCC38 #3883CD #8138CD
monochromatic
#6F6E1C #A09F28 #CDCC38 #D9D969 #E6E59A

Accessibility & contrast

On white

1.71
#CDCC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.29
#CDCC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC38
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC38#FFFFFF#000000##000000
##CDCC381.001.7112.2912.29
#FFFFFF1.711.0021.0021.00
#00000012.2921.001.001.00
##00000012.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC31A
Deuteranopia (green-blind)
#DFC844
Tritanopia (blue-blind)
#DCBFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdcc38;
/* rgb */ color: rgb(205, 204, 56);
/* oklch */ color: oklch(82.1% 0.161 109.1);
Tailwind
colors: {
  custom: {
    50: '#e0db79',
    500: '#cdcc38',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc38;
$custom-light: #e0db79;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc38",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 56
  },
  "hsl": {
    "h": 59.597,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.82081,
    "c": 0.16097,
    "h": 109.1
  },
  "luminance": 0.5645
}

Semantic roles & 50–950 ramp

primary
#CDCC38
secondary
#313278
accent
#46E345
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDCC38

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

Preview Lab → · Contrast checker → · Palette generator →

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