#CDC148#CDC148

#CDC148 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.9% C 0.140 H 103.6°. Best body text is #000000 at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#CDC148
RGBrgb(205, 193, 72)
HSLhsl(55, 57%, 54%)
HSVhsv(55, 65%, 80%)
CMYKcmyk(0%, 5.9%, 64.9%, 19.6%)
CIE-LABlab(77.03, -10.11, 60.20)
CIE-LCHlch(77.03, 61.04, 99.53°)
OKLaboklab(79.86% -0.033 0.1361)
OKLCHoklch(79.86% 0.14 103.6)
XYZxyz(45.4183, 51.5887, 13.6948)
Luminance0.5159 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC148 #4854CD
analogous
#CD7E48 #CDC148 #97CD48
triadic
#CDC148 #48CDC1 #C148CD
tetradic
#CDC148 #48CD7E #4854CD #CD4897
square
#CDC148 #48CD7E #4854CD #CD4897
split-complementary
#CDC148 #4897CD #7E48CD
monochromatic
#797121 #A99E2E #CDC148 #DAD178 #E7E2A8

Accessibility & contrast

On white

1.86
#CDC148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.32
#CDC148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC148
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC148#FFFFFF#000000##000000
##CDC1481.001.8611.3211.32
#FFFFFF1.861.0021.0021.00
#00000011.3221.001.001.00
##00000011.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB38
Deuteranopia (green-blind)
#D5C14F
Tritanopia (blue-blind)
#DCB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc148;
/* rgb */ color: rgb(205, 193, 72);
/* oklch */ color: oklch(79.9% 0.140 103.6);
Tailwind
colors: {
  custom: {
    50: '#dfd381',
    500: '#cdc148',
    950: '#000000',
  },
}
SCSS
$custom: #cdc148;
$custom-light: #dfd381;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc148",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 72
  },
  "hsl": {
    "h": 54.586,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.79855,
    "c": 0.14007,
    "h": 103.6
  },
  "luminance": 0.51587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC148

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

Preview Lab → · Contrast checker → · Palette generator →

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