#CDC248#CDC248

#CDC248 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.141 H 104.2°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#CDC248
RGBrgb(205, 194, 72)
HSLhsl(55, 57%, 54%)
HSVhsv(55, 65%, 80%)
CMYKcmyk(0%, 5.4%, 64.9%, 19.6%)
CIE-LABlab(77.30, -10.62, 60.48)
CIE-LCHlch(77.30, 61.40, 99.96°)
OKLaboklab(80.07% -0.0345 0.1367)
OKLCHoklch(80.07% 0.141 104.2)
XYZxyz(45.6401, 52.0323, 13.7688)
Luminance0.5203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC248 #4853CD
analogous
#CD8048 #CDC248 #95CD48
triadic
#CDC248 #48CDC2 #C248CD
tetradic
#CDC248 #48CD80 #4853CD #CD4895
square
#CDC248 #48CD80 #4853CD #CD4895
split-complementary
#CDC248 #4895CD #8048CD
monochromatic
#797221 #A99F2E #CDC248 #DAD278 #E7E2A8

Accessibility & contrast

On white

1.84
#CDC248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#CDC248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC248
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC248#FFFFFF#000000##000000
##CDC2481.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC38
Deuteranopia (green-blind)
#D6C24F
Tritanopia (blue-blind)
#DCB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc248;
/* rgb */ color: rgb(205, 194, 72);
/* oklch */ color: oklch(80.1% 0.141 104.2);
Tailwind
colors: {
  custom: {
    50: '#dfd481',
    500: '#cdc248',
    950: '#000000',
  },
}
SCSS
$custom: #cdc248;
$custom-light: #dfd481;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc248",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 55.038,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.80066,
    "c": 0.14099,
    "h": 104.2
  },
  "luminance": 0.52031
}

Semantic roles & 50–950 ramp

primary
#CDC248
secondary
#383E82
accent
#54E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC248

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

Preview Lab → · Contrast checker → · Palette generator →

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