#CDCD48#CDCD48

#CDCD48 is a very light, vivid yellow. Relative luminance 0.571; OKLCH L 82.4% C 0.152 H 109.3°. Best body text is #000000 at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#CDCD48
RGBrgb(205, 205, 72)
HSLhsl(60, 57%, 54%)
HSVhsv(60, 65%, 80%)
CMYKcmyk(0%, 0%, 64.9%, 19.6%)
CIE-LABlab(80.24, -16.17, 63.53)
CIE-LCHlch(80.24, 65.56, 104.28°)
OKLaboklab(82.41% -0.0502 0.1432)
OKLCHoklch(82.41% 0.152 109.3)
XYZxyz(48.1794, 57.1110, 14.6152)
Luminance0.5711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD48 #4848CD
analogous
#CD8B48 #CDCD48 #8BCD48
triadic
#CDCD48 #48CDCD #CD48CD
tetradic
#CDCD48 #48CD8B #4848CD #CD488B
square
#CDCD48 #48CD8B #4848CD #CD488B
split-complementary
#CDCD48 #488BCD #8B48CD
monochromatic
#797921 #A9A92E #CDCD48 #DADA78 #E7E7A8

Accessibility & contrast

On white

1.69
#CDCD48 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.42
#CDCD48 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD48
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD48#FFFFFF#000000##000000
##CDCD481.001.6912.4212.42
#FFFFFF1.691.0021.0021.00
#00000012.4221.001.001.00
##00000012.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC536
Deuteranopia (green-blind)
#DFC951
Tritanopia (blue-blind)
#DBC0B2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cdcd48;
/* rgb */ color: rgb(205, 205, 72);
/* oklch */ color: oklch(82.4% 0.152 109.3);
Tailwind
colors: {
  custom: {
    50: '#dfdc82',
    500: '#cdcd48',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd48;
$custom-light: #dfdc82;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd48",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 72
  },
  "hsl": {
    "h": 60,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.8241,
    "c": 0.1517,
    "h": 109.3
  },
  "luminance": 0.5711
}

Semantic roles & 50–950 ramp

primary
#CDCD48
secondary
#383882
accent
#47E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDCD48

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

Preview Lab → · Contrast checker → · Palette generator →

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