#CDC548#CDC548

#CDC548 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.7% C 0.144 H 105.7°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#CDC548
RGBrgb(205, 197, 72)
HSLhsl(56, 57%, 54%)
HSVhsv(56, 65%, 80%)
CMYKcmyk(0%, 3.9%, 64.9%, 19.6%)
CIE-LABlab(78.10, -12.15, 61.31)
CIE-LCHlch(78.10, 62.50, 101.20°)
OKLaboklab(80.7% -0.0388 0.1385)
OKLCHoklch(80.7% 0.144 105.7)
XYZxyz(46.3145, 53.3811, 13.9936)
Luminance0.5338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC548 #4850CD
analogous
#CD8348 #CDC548 #93CD48
triadic
#CDC548 #48CDC5 #C548CD
tetradic
#CDC548 #48CD83 #4850CD #CD4893
square
#CDC548 #48CD83 #4850CD #CD4893
split-complementary
#CDC548 #4893CD #8348CD
monochromatic
#797421 #A9A22E #CDC548 #DAD478 #E7E3A8

Accessibility & contrast

On white

1.80
#CDC548 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.68
#CDC548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC548
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC548#FFFFFF#000000##000000
##CDC5481.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE38
Deuteranopia (green-blind)
#D8C450
Tritanopia (blue-blind)
#DCB8AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc548;
/* rgb */ color: rgb(205, 197, 72);
/* oklch */ color: oklch(80.7% 0.144 105.7);
Tailwind
colors: {
  custom: {
    50: '#dfd681',
    500: '#cdc548',
    950: '#000000',
  },
}
SCSS
$custom: #cdc548;
$custom-light: #dfd681;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc548",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 56.391,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.80702,
    "c": 0.14381,
    "h": 105.7
  },
  "luminance": 0.5338
}

Semantic roles & 50–950 ramp

primary
#CDC548
secondary
#383C82
accent
#51E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC548

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

Preview Lab → · Contrast checker → · Palette generator →

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