#CDB138#CDB138

#CDB138 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 76.4% C 0.138 H 95.7°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#CDB138
RGBrgb(205, 177, 56)
HSLhsl(49, 60%, 51%)
HSVhsv(49, 73%, 80%)
CMYKcmyk(0%, 13.7%, 72.7%, 19.6%)
CIE-LABlab(72.70, -2.66, 62.16)
CIE-LCHlch(72.70, 62.22, 92.45°)
OKLaboklab(76.38% -0.0136 0.1375)
OKLCHoklch(76.38% 0.138 95.7)
XYZxyz(41.6149, 44.7112, 10.1788)
Luminance0.4471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB138 #3854CD
analogous
#CD6638 #CDB138 #9ECD38
triadic
#CDB138 #38CDB1 #B138CD
tetradic
#CDB138 #38CD66 #3854CD #CD389E
square
#CDB138 #38CD66 #3854CD #CD389E
split-complementary
#CDB138 #389ECD #6638CD
monochromatic
#6F5F1C #A08928 #CDB138 #D9C469 #E6D79A

Accessibility & contrast

On white

2.11
#CDB138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.94
#CDB138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB138
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB138#FFFFFF#000000##000000
##CDB1381.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AD25
Deuteranopia (green-blind)
#CAB63F
Tritanopia (blue-blind)
#DDA399
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cdb138;
/* rgb */ color: rgb(205, 177, 56);
/* oklch */ color: oklch(76.4% 0.138 95.7);
Tailwind
colors: {
  custom: {
    50: '#e0c776',
    500: '#cdb138',
    950: '#000000',
  },
}
SCSS
$custom: #cdb138;
$custom-light: #e0c776;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb138",
  "rgb": {
    "r": 205,
    "g": 177,
    "b": 56
  },
  "hsl": {
    "h": 48.725,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76382,
    "c": 0.13821,
    "h": 95.7
  },
  "luminance": 0.44709
}

Semantic roles & 50–950 ramp

primary
#CDB138
secondary
#8F9CD1
accent
#63E345
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CDB138

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

Preview Lab → · Contrast checker → · Palette generator →

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