#CCAF4B#CCAF4B

#CCAF4B is a light, vivid yellow. Relative luminance 0.440; OKLCH L 76.0% C 0.123 H 93.0°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#CCAF4B
RGBrgb(204, 175, 75)
HSLhsl(47, 56%, 55%)
HSVhsv(47, 63%, 80%)
CMYKcmyk(0%, 14.2%, 63.2%, 20%)
CIE-LABlab(72.23, -0.98, 53.74)
CIE-LCHlch(72.23, 53.75, 91.05°)
OKLaboklab(76.04% -0.0065 0.1229)
OKLCHoklch(76.04% 0.123 93)
XYZxyz(41.5038, 44.0075, 12.9634)
Luminance0.4400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF4B #4B68CC
analogous
#CC6F4B #CCAF4B #A8CC4B
triadic
#CCAF4B #4BCCAF #AF4BCC
tetradic
#CCAF4B #4BCC6F #4B68CC #CC4BA8
square
#CCAF4B #4BCC6F #4B68CC #CC4BA8
split-complementary
#CCAF4B #4BA8CC #6F4BCC
monochromatic
#7A6623 #AA8E30 #CCAF4B #DAC47B #E7D9AA

Accessibility & contrast

On white

2.14
#CCAF4B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#CCAF4B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF4B
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF4B#FFFFFF#000000##000000
##CCAF4B1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AC40
Deuteranopia (green-blind)
#C8B550
Tritanopia (blue-blind)
#DCA299
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf4b;
/* rgb */ color: rgb(204, 175, 75);
/* oklch */ color: oklch(76.0% 0.123 93.0);
Tailwind
colors: {
  custom: {
    50: '#dfc681',
    500: '#ccaf4b',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf4b;
$custom-light: #dfc681;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf4b",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 75
  },
  "hsl": {
    "h": 46.512,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.76037,
    "c": 0.12307,
    "h": 93
  },
  "luminance": 0.44005
}

Semantic roles & 50–950 ramp

primary
#CCAF4B
secondary
#9EAAD5
accent
#6ADF49
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CCAF4B

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

Preview Lab → · Contrast checker → · Palette generator →

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