#CDC238#CDC238

#CDC238 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 79.9% C 0.152 H 104.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#CDC238
RGBrgb(205, 194, 56)
HSLhsl(56, 60%, 51%)
HSVhsv(56, 73%, 80%)
CMYKcmyk(0%, 5.4%, 72.7%, 19.6%)
CIE-LABlab(77.19, -11.46, 66.50)
CIE-LCHlch(77.19, 67.48, 99.78°)
OKLaboklab(79.94% -0.0385 0.1467)
OKLCHoklch(79.94% 0.152 104.7)
XYZxyz(45.1843, 51.8500, 11.3686)
Luminance0.5185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC238 #3843CD
analogous
#CD7738 #CDC238 #8ECD38
triadic
#CDC238 #38CDC2 #C238CD
tetradic
#CDC238 #38CD77 #3843CD #CD388E
square
#CDC238 #38CD77 #3843CD #CD388E
split-complementary
#CDC238 #388ECD #7738CD
monochromatic
#6F691C #A09728 #CDC238 #D9D169 #E6E09A

Accessibility & contrast

On white

1.85
#CDC238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#CDC238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC238
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC238#FFFFFF#000000##000000
##CDC2381.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1E
Deuteranopia (green-blind)
#D7C142
Tritanopia (blue-blind)
#DCB5A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc238;
/* rgb */ color: rgb(205, 194, 56);
/* oklch */ color: oklch(79.9% 0.152 104.7);
Tailwind
colors: {
  custom: {
    50: '#e0d478',
    500: '#cdc238',
    950: '#000000',
  },
}
SCSS
$custom: #cdc238;
$custom-light: #e0d478;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc238",
  "rgb": {
    "r": 205,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 55.57,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79945,
    "c": 0.15169,
    "h": 104.7
  },
  "luminance": 0.51848
}

Semantic roles & 50–950 ramp

primary
#CDC238
secondary
#313678
accent
#50E345
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC238

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

Preview Lab → · Contrast checker → · Palette generator →

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