#CCAF38#CCAF38

#CCAF38 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.9% C 0.137 H 94.9°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#CCAF38
RGBrgb(204, 175, 56)
HSLhsl(48, 59%, 51%)
HSVhsv(48, 73%, 80%)
CMYKcmyk(0%, 14.2%, 72.5%, 20%)
CIE-LABlab(72.08, -2.04, 61.53)
CIE-LCHlch(72.08, 61.56, 91.90°)
OKLaboklab(75.87% -0.0118 0.1362)
OKLCHoklch(75.87% 0.137 94.9)
XYZxyz(40.9478, 43.7851, 10.0352)
Luminance0.4378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF38 #3855CC
analogous
#CC6538 #CCAF38 #9FCC38
triadic
#CCAF38 #38CCAF #AF38CC
tetradic
#CCAF38 #38CC65 #3855CC #CC389F
square
#CCAF38 #38CC65 #3855CC #CC389F
split-complementary
#CCAF38 #389FCC #6538CC
monochromatic
#6E5E1C #9E8729 #CCAF38 #D8C369 #E5D699

Accessibility & contrast

On white

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

On black

9.76
#CCAF38 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF38
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF38#FFFFFF#000000##000000
##CCAF381.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccaf38;
/* rgb */ color: rgb(204, 175, 56);
/* oklch */ color: oklch(75.9% 0.137 94.9);
Tailwind
colors: {
  custom: {
    50: '#e0c676',
    500: '#ccaf38',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf38;
$custom-light: #e0c676;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf38",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 56
  },
  "hsl": {
    "h": 48.243,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75872,
    "c": 0.13674,
    "h": 94.9
  },
  "luminance": 0.43783
}

Semantic roles & 50–950 ramp

primary
#CCAF38
secondary
#8F9CD1
accent
#64E245
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161309
muted
#84827B

Preview Lab

Preview with #CCAF38

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

Preview Lab → · Contrast checker → · Palette generator →

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