#CDAA38#CDAA38

#CDAA38 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.9% C 0.134 H 91.3°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#CDAA38
RGBrgb(205, 170, 56)
HSLhsl(46, 60%, 51%)
HSVhsv(46, 73%, 80%)
CMYKcmyk(0%, 17.1%, 72.7%, 19.6%)
CIE-LABlab(70.88, 1.04, 60.38)
CIE-LCHlch(70.88, 60.39, 89.02°)
OKLaboklab(74.94% -0.003 0.1338)
OKLCHoklch(74.94% 0.134 91.3)
XYZxyz(40.2676, 42.0165, 9.7297)
Luminance0.4201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAA38 #385BCD
analogous
#CD5F38 #CDAA38 #A5CD38
triadic
#CDAA38 #38CDAA #AA38CD
tetradic
#CDAA38 #38CD5F #385BCD #CD38A5
square
#CDAA38 #38CD5F #385BCD #CD38A5
split-complementary
#CDAA38 #38A5CD #5F38CD
monochromatic
#6F5B1C #A08428 #CDAA38 #D9BF69 #E6D49A

Accessibility & contrast

On white

2.23
#CDAA38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#CDAA38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAA38
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAA38#FFFFFF#000000##000000
##CDAA381.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA827
Deuteranopia (green-blind)
#C5B23E
Tritanopia (blue-blind)
#DE9C93
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cdaa38;
/* rgb */ color: rgb(205, 170, 56);
/* oklch */ color: oklch(74.9% 0.134 91.3);
Tailwind
colors: {
  custom: {
    50: '#e0c276',
    500: '#cdaa38',
    950: '#000000',
  },
}
SCSS
$custom: #cdaa38;
$custom-light: #e0c276;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaa38",
  "rgb": {
    "r": 205,
    "g": 170,
    "b": 56
  },
  "hsl": {
    "h": 45.906,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.74944,
    "c": 0.13379,
    "h": 91.3
  },
  "luminance": 0.42014
}

Semantic roles & 50–950 ramp

primary
#CDAA38
secondary
#8F9FD1
accent
#6AE345
background
#FEFBF7
surface
#FDF7ED
border
#D5D0C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CDAA38

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

Preview Lab → · Contrast checker → · Palette generator →

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