#CCAF3F#CCAF3F

#CCAF3F is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.9% C 0.132 H 94.3°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#CCAF3F
RGBrgb(204, 175, 63)
HSLhsl(48, 58%, 52%)
HSVhsv(48, 69%, 80%)
CMYKcmyk(0%, 14.2%, 69.1%, 20%)
CIE-LABlab(72.13, -1.69, 58.80)
CIE-LCHlch(72.13, 58.83, 91.65°)
OKLaboklab(75.93% -0.01 0.1317)
OKLCHoklch(75.93% 0.132 94.3)
XYZxyz(41.1311, 43.8584, 11.0007)
Luminance0.4386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAF3F #3F5CCC
analogous
#CC693F #CCAF3F #A2CC3F
triadic
#CCAF3F #3FCCAF #AF3FCC
tetradic
#CCAF3F #3FCC69 #3F5CCC #CC3FA2
square
#CCAF3F #3FCC69 #3F5CCC #CC3FA2
split-complementary
#CCAF3F #3FA2CC #693FCC
monochromatic
#72611E #A38A2B #CCAF3F #D9C36F #E6D7A0

Accessibility & contrast

On white

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

On black

9.77
#CCAF3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAF3F
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAF3F#FFFFFF#000000##000000
##CCAF3F1.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AC30
Deuteranopia (green-blind)
#C8B545
Tritanopia (blue-blind)
#DCA298
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ccaf3f;
/* rgb */ color: rgb(204, 175, 63);
/* oklch */ color: oklch(75.9% 0.132 94.3);
Tailwind
colors: {
  custom: {
    50: '#dfc67a',
    500: '#ccaf3f',
    950: '#000000',
  },
}
SCSS
$custom: #ccaf3f;
$custom-light: #dfc67a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaf3f",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 63
  },
  "hsl": {
    "h": 47.66,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.75926,
    "c": 0.13212,
    "h": 94.3
  },
  "luminance": 0.43856
}

Semantic roles & 50–950 ramp

primary
#CCAF3F
secondary
#95A1D2
accent
#66E147
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CCAF3F

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

Preview Lab → · Contrast checker → · Palette generator →

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