#CDC138#CDC138

#CDC138 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.7% C 0.151 H 104.2°. Best body text is #000000 at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#CDC138
RGBrgb(205, 193, 56)
HSLhsl(55, 60%, 51%)
HSVhsv(55, 73%, 80%)
CMYKcmyk(0%, 5.9%, 72.7%, 19.6%)
CIE-LABlab(76.92, -10.95, 66.24)
CIE-LCHlch(76.92, 67.14, 99.38°)
OKLaboklab(79.73% -0.0371 0.1462)
OKLCHoklch(79.73% 0.151 104.2)
XYZxyz(44.9625, 51.4064, 11.2946)
Luminance0.5141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC138 #3844CD
analogous
#CD7638 #CDC138 #8ECD38
triadic
#CDC138 #38CDC1 #C138CD
tetradic
#CDC138 #38CD76 #3844CD #CD388E
square
#CDC138 #38CD76 #3844CD #CD388E
split-complementary
#CDC138 #388ECD #7638CD
monochromatic
#6F681C #A09628 #CDC138 #D9D069 #E6DF9A

Accessibility & contrast

On white

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

On black

11.28
#CDC138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC138
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC138#FFFFFF#000000##000000
##CDC1381.001.8611.2811.28
#FFFFFF1.861.0021.0021.00
#00000011.2821.001.001.00
##00000011.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BA1F
Deuteranopia (green-blind)
#D6C142
Tritanopia (blue-blind)
#DCB4A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc138;
/* rgb */ color: rgb(205, 193, 56);
/* oklch */ color: oklch(79.7% 0.151 104.2);
Tailwind
colors: {
  custom: {
    50: '#e0d378',
    500: '#cdc138',
    950: '#000000',
  },
}
SCSS
$custom: #cdc138;
$custom-light: #e0d378;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc138",
  "rgb": {
    "r": 205,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 55.168,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.79733,
    "c": 0.15081,
    "h": 104.2
  },
  "luminance": 0.51405
}

Semantic roles & 50–950 ramp

primary
#CDC138
secondary
#313778
accent
#52E345
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC138

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

Preview Lab → · Contrast checker → · Palette generator →

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