#CDAC38#CDAC38

#CDAC38 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 75.4% C 0.135 H 92.6°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#CDAC38
RGBrgb(205, 172, 56)
HSLhsl(47, 60%, 51%)
HSVhsv(47, 73%, 80%)
CMYKcmyk(0%, 16.1%, 72.7%, 19.6%)
CIE-LABlab(71.40, -0.03, 60.89)
CIE-LCHlch(71.40, 60.89, 90.02°)
OKLaboklab(75.35% -0.0061 0.1348)
OKLCHoklch(75.35% 0.135 92.6)
XYZxyz(40.6454, 42.7721, 9.8556)
Luminance0.4277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAC38 #3859CD
analogous
#CD6138 #CDAC38 #A3CD38
triadic
#CDAC38 #38CDAC #AC38CD
tetradic
#CDAC38 #38CD61 #3859CD #CD38A3
square
#CDAC38 #38CD61 #3859CD #CD38A3
split-complementary
#CDAC38 #38A3CD #6138CD
monochromatic
#6F5C1C #A08528 #CDAC38 #D9C069 #E6D59A

Accessibility & contrast

On white

2.20
#CDAC38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#CDAC38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAC38
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAC38#FFFFFF#000000##000000
##CDAC381.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA926
Deuteranopia (green-blind)
#C7B33E
Tritanopia (blue-blind)
#DE9E95
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cdac38;
/* rgb */ color: rgb(205, 172, 56);
/* oklch */ color: oklch(75.4% 0.135 92.6);
Tailwind
colors: {
  custom: {
    50: '#e0c476',
    500: '#cdac38',
    950: '#000000',
  },
}
SCSS
$custom: #cdac38;
$custom-light: #e0c476;
$custom-dark: #000000;
JSON
{
  "hex": "#cdac38",
  "rgb": {
    "r": 205,
    "g": 172,
    "b": 56
  },
  "hsl": {
    "h": 46.711,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75353,
    "c": 0.13498,
    "h": 92.6
  },
  "luminance": 0.4277
}

Semantic roles & 50–950 ramp

primary
#CDAC38
secondary
#8F9ED1
accent
#68E345
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161209
muted
#84817B

Preview Lab

Preview with #CDAC38

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

Preview Lab → · Contrast checker → · Palette generator →

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