#CDC145#CDC145

#CDC145 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.142 H 103.8°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#CDC145
RGBrgb(205, 193, 69)
HSLhsl(55, 58%, 54%)
HSVhsv(55, 66%, 80%)
CMYKcmyk(0%, 5.9%, 66.3%, 19.6%)
CIE-LABlab(77.01, -10.28, 61.40)
CIE-LCHlch(77.01, 62.26, 99.51°)
OKLaboklab(79.83% -0.0339 0.1382)
OKLCHoklch(79.83% 0.142 103.8)
XYZxyz(45.3228, 51.5505, 13.1919)
Luminance0.5155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC145 #4551CD
analogous
#CD7D45 #CDC145 #95CD45
triadic
#CDC145 #45CDC1 #C145CD
tetradic
#CDC145 #45CD7D #4551CD #CD4595
square
#CDC145 #45CD7D #4551CD #CD4595
split-complementary
#CDC145 #4595CD #7D45CD
monochromatic
#777020 #A89D2D #CDC145 #DAD175 #E7E1A5

Accessibility & contrast

On white

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

On black

11.31
#CDC145 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC145
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC145#FFFFFF#000000##000000
##CDC1451.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc145;
/* rgb */ color: rgb(205, 193, 69);
/* oklch */ color: oklch(79.8% 0.142 103.8);
Tailwind
colors: {
  custom: {
    50: '#e0d37f',
    500: '#cdc145',
    950: '#000000',
  },
}
SCSS
$custom: #cdc145;
$custom-light: #e0d37f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc145",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 69
  },
  "hsl": {
    "h": 54.706,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.79829,
    "c": 0.14228,
    "h": 103.8
  },
  "luminance": 0.51549
}

Semantic roles & 50–950 ramp

primary
#CDC145
secondary
#363D80
accent
#55E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC145

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

Preview Lab → · Contrast checker → · Palette generator →

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