#CDC54B#CDC54B

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

Color values

HEX#CDC54B
RGBrgb(205, 197, 75)
HSLhsl(56, 57%, 55%)
HSVhsv(56, 63%, 80%)
CMYKcmyk(0%, 3.9%, 63.4%, 19.6%)
CIE-LABlab(78.12, -11.96, 60.10)
CIE-LCHlch(78.12, 61.28, 101.26°)
OKLaboklab(80.73% -0.038 0.1364)
OKLCHoklch(80.73% 0.142 105.6)
XYZxyz(46.4148, 53.4212, 14.5216)
Luminance0.5342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC54B #4B53CD
analogous
#CD844B #CDC54B #94CD4B
triadic
#CDC54B #4BCDC5 #C54BCD
tetradic
#CDC54B #4BCD84 #4B53CD #CD4B94
square
#CDC54B #4BCD84 #4B53CD #CD4B94
split-complementary
#CDC54B #4B94CD #844BCD
monochromatic
#7B7622 #ABA430 #CDC54B #DAD47B #E8E4AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC54B#FFFFFF#000000##000000
##CDC54B1.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)
#D5BE3C
Deuteranopia (green-blind)
#D8C452
Tritanopia (blue-blind)
#DBB8AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cdc54b;
/* rgb */ color: rgb(205, 197, 75);
/* oklch */ color: oklch(80.7% 0.142 105.6);
Tailwind
colors: {
  custom: {
    50: '#dfd683',
    500: '#cdc54b',
    950: '#000000',
  },
}
SCSS
$custom: #cdc54b;
$custom-light: #dfd683;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc54b",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 56.308,
    "s": 56.522,
    "l": 54.902
  },
  "oklch": {
    "l": 0.80729,
    "c": 0.14156,
    "h": 105.6
  },
  "luminance": 0.5342
}

Semantic roles & 50–950 ramp

primary
#CDC54B
secondary
#393D83
accent
#51E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC54B

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

Preview Lab → · Contrast checker → · Palette generator →

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