#C2AF40#C2AF40

#C2AF40 is a light, vivid yellow. Relative luminance 0.425; OKLCH L 75.0% C 0.131 H 99.5°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#C2AF40
RGBrgb(194, 175, 64)
HSLhsl(51, 52%, 51%)
HSVhsv(51, 67%, 76%)
CMYKcmyk(0%, 9.8%, 67%, 23.9%)
CIE-LABlab(71.22, -5.96, 57.15)
CIE-LCHlch(71.22, 57.46, 95.95°)
OKLaboklab(74.98% -0.0215 0.1287)
OKLCHoklch(74.98% 0.131 99.5)
XYZxyz(38.5052, 42.5012, 11.0248)
Luminance0.4250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2AF40 #4053C2
analogous
#C26E40 #C2AF40 #94C240
triadic
#C2AF40 #40C2AF #AF40C2
tetradic
#C2AF40 #40C26E #4053C2 #C24094
square
#C2AF40 #40C26E #4053C2 #C24094
split-complementary
#C2AF40 #4094C2 #6E40C2
monochromatic
#675D21 #958630 #C2AF40 #D1C26E #E0D69D

Accessibility & contrast

On white

2.21
#C2AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#C2AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2AF40
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2AF40#FFFFFF#000000##000000
##C2AF401.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c2af40;
/* rgb */ color: rgb(194, 175, 64);
/* oklch */ color: oklch(75.0% 0.131 99.5);
Tailwind
colors: {
  custom: {
    50: '#d8c67b',
    500: '#c2af40',
    950: '#000000',
  },
}
SCSS
$custom: #c2af40;
$custom-light: #d8c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#c2af40",
  "rgb": {
    "r": 194,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 51.231,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.74983,
    "c": 0.13052,
    "h": 99.5
  },
  "luminance": 0.42499
}

Semantic roles & 50–950 ramp

primary
#C2AF40
secondary
#929ACC
accent
#62DB4D
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C2AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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