#CDAF38#CDAF38

#CDAF38 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 76.0% C 0.137 H 94.4°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#CDAF38
RGBrgb(205, 175, 56)
HSLhsl(48, 60%, 51%)
HSVhsv(48, 73%, 80%)
CMYKcmyk(0%, 14.6%, 72.7%, 19.6%)
CIE-LABlab(72.18, -1.61, 61.65)
CIE-LCHlch(72.18, 61.67, 91.50°)
OKLaboklab(75.97% -0.0106 0.1365)
OKLCHoklch(75.97% 0.137 94.4)
XYZxyz(41.2228, 43.9269, 10.0481)
Luminance0.4392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF38 #3856CD
analogous
#CD6438 #CDAF38 #A1CD38
triadic
#CDAF38 #38CDAF #AF38CD
tetradic
#CDAF38 #38CD64 #3856CD #CD38A1
square
#CDAF38 #38CD64 #3856CD #CD38A1
split-complementary
#CDAF38 #38A1CD #6438CD
monochromatic
#6F5E1C #A08828 #CDAF38 #D9C369 #E6D69A

Accessibility & contrast

On white

2.15
#CDAF38 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#CDAF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF38
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF38#FFFFFF#000000##000000
##CDAF381.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC25
Deuteranopia (green-blind)
#C9B53F
Tritanopia (blue-blind)
#DDA197
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cdaf38;
/* rgb */ color: rgb(205, 175, 56);
/* oklch */ color: oklch(76.0% 0.137 94.4);
Tailwind
colors: {
  custom: {
    50: '#e0c676',
    500: '#cdaf38',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf38;
$custom-light: #e0c676;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf38",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 47.919,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75969,
    "c": 0.13687,
    "h": 94.4
  },
  "luminance": 0.43925
}

Semantic roles & 50–950 ramp

primary
#CDAF38
secondary
#8F9DD1
accent
#65E345
background
#FEFCF7
surface
#FDF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CDAF38

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

Preview Lab → · Contrast checker → · Palette generator →

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