#C2AF42#C2AF42

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

Color values

HEX#C2AF42
RGBrgb(194, 175, 66)
HSLhsl(51, 51%, 51%)
HSVhsv(51, 66%, 76%)
CMYKcmyk(0%, 9.8%, 66%, 23.9%)
CIE-LABlab(71.23, -5.84, 56.33)
CIE-LCHlch(71.23, 56.63, 95.92°)
OKLaboklab(75% -0.0209 0.1273)
OKLCHoklch(75% 0.129 99.3)
XYZxyz(38.5632, 42.5244, 11.3300)
Luminance0.4252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2AF42 #4255C2
analogous
#C26F42 #C2AF42 #95C242
triadic
#C2AF42 #42C2AF #AF42C2
tetradic
#C2AF42 #42C26F #4255C2 #C24295
square
#C2AF42 #42C26F #4255C2 #C24295
split-complementary
#C2AF42 #4295C2 #6F42C2
monochromatic
#685E22 #968731 #C2AF42 #D1C370 #E0D69F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C2AF42#FFFFFF#000000##000000
##C2AF421.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)
#BFAA34
Deuteranopia (green-blind)
#C4B148
Tritanopia (blue-blind)
#D1A398
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #c2af42;
/* rgb */ color: rgb(194, 175, 66);
/* oklch */ color: oklch(75.0% 0.129 99.3);
Tailwind
colors: {
  custom: {
    50: '#d8c67c',
    500: '#c2af42',
    950: '#000000',
  },
}
SCSS
$custom: #c2af42;
$custom-light: #d8c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#c2af42",
  "rgb": {
    "r": 194,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 51.094,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75001,
    "c": 0.12903,
    "h": 99.3
  },
  "luminance": 0.42523
}

Semantic roles & 50–950 ramp

primary
#C2AF42
secondary
#949CCC
accent
#62DB4D
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C2AF42

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

Preview Lab → · Contrast checker → · Palette generator →

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