#CDAB38#CDAB38

#CDAB38 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 75.1% C 0.134 H 91.9°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#CDAB38
RGBrgb(205, 171, 56)
HSLhsl(46, 60%, 51%)
HSVhsv(46, 73%, 80%)
CMYKcmyk(0%, 16.6%, 72.7%, 19.6%)
CIE-LABlab(71.14, 0.50, 60.64)
CIE-LCHlch(71.14, 60.64, 89.52°)
OKLaboklab(75.15% -0.0046 0.1343)
OKLCHoklch(75.15% 0.134 91.9)
XYZxyz(40.4558, 42.3929, 9.7924)
Luminance0.4239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAB38 #385ACD
analogous
#CD6038 #CDAB38 #A4CD38
triadic
#CDAB38 #38CDAB #AB38CD
tetradic
#CDAB38 #38CD60 #385ACD #CD38A4
square
#CDAB38 #38CD60 #385ACD #CD38A4
split-complementary
#CDAB38 #38A4CD #6038CD
monochromatic
#6F5C1C #A08428 #CDAB38 #D9C069 #E6D49A

Accessibility & contrast

On white

2.22
#CDAB38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#CDAB38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAB38
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAB38#FFFFFF#000000##000000
##CDAB381.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA826
Deuteranopia (green-blind)
#C6B23E
Tritanopia (blue-blind)
#DE9D94
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cdab38;
/* rgb */ color: rgb(205, 171, 56);
/* oklch */ color: oklch(75.1% 0.134 91.9);
Tailwind
colors: {
  custom: {
    50: '#e0c376',
    500: '#cdab38',
    950: '#000000',
  },
}
SCSS
$custom: #cdab38;
$custom-light: #e0c376;
$custom-dark: #000000;
JSON
{
  "hex": "#cdab38",
  "rgb": {
    "r": 205,
    "g": 171,
    "b": 56
  },
  "hsl": {
    "h": 46.309,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75149,
    "c": 0.13438,
    "h": 91.9
  },
  "luminance": 0.4239
}

Semantic roles & 50–950 ramp

primary
#CDAB38
secondary
#8F9FD1
accent
#69E345
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CDAB38

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

Preview Lab → · Contrast checker → · Palette generator →

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