#C0AF40#C0AF40

#C0AF40 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.8% C 0.130 H 100.5°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#C0AF40
RGBrgb(192, 175, 64)
HSLhsl(52, 50%, 50%)
HSVhsv(52, 67%, 75%)
CMYKcmyk(0%, 8.9%, 66.7%, 24.7%)
CIE-LABlab(71.03, -6.82, 56.91)
CIE-LCHlch(71.03, 57.32, 96.84°)
OKLaboklab(74.8% -0.0238 0.1283)
OKLCHoklch(74.8% 0.13 100.5)
XYZxyz(37.9952, 42.2382, 11.0009)
Luminance0.4224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C0AF40 #4051C0
analogous
#C06F40 #C0AF40 #91C040
triadic
#C0AF40 #40C0AF #AF40C0
tetradic
#C0AF40 #40C06F #4051C0 #C04091
square
#C0AF40 #40C06F #4051C0 #C04091
split-complementary
#C0AF40 #4091C0 #6F40C0
monochromatic
#645C21 #928530 #C0AF40 #CFC26E #DED69C

Accessibility & contrast

On white

2.22
#C0AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#C0AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C0AF40
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C0AF40#FFFFFF#000000##000000
##C0AF401.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAA31
Deuteranopia (green-blind)
#C4B146
Tritanopia (blue-blind)
#CEA398
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #c0af40;
/* rgb */ color: rgb(192, 175, 64);
/* oklch */ color: oklch(74.8% 0.130 100.5);
Tailwind
colors: {
  custom: {
    50: '#d6c67b',
    500: '#c0af40',
    950: '#000000',
  },
}
SCSS
$custom: #c0af40;
$custom-light: #d6c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#c0af40",
  "rgb": {
    "r": 192,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 52.031,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.74798,
    "c": 0.13048,
    "h": 100.5
  },
  "luminance": 0.42237
}

Semantic roles & 50–950 ramp

primary
#C0AF40
secondary
#9199CB
accent
#60DA4E
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C0AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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