#C3AF40#C3AF40

#C3AF40 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 75.1% C 0.131 H 98.9°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#C3AF40
RGBrgb(195, 175, 64)
HSLhsl(51, 52%, 51%)
HSVhsv(51, 67%, 76%)
CMYKcmyk(0%, 10.3%, 67.2%, 23.5%)
CIE-LABlab(71.31, -5.53, 57.28)
CIE-LCHlch(71.31, 57.54, 95.51°)
OKLaboklab(75.08% -0.0203 0.129)
OKLCHoklch(75.08% 0.131 98.9)
XYZxyz(38.7628, 42.6340, 11.0369)
Luminance0.4263 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C3AF40 #4054C3
analogous
#C36D40 #C3AF40 #95C340
triadic
#C3AF40 #40C3AF #AF40C3
tetradic
#C3AF40 #40C36D #4054C3 #C34095
square
#C3AF40 #40C36D #4054C3 #C34095
split-complementary
#C3AF40 #4095C3 #6D40C3
monochromatic
#685D21 #97872F #C3AF40 #D2C36F #E0D69D

Accessibility & contrast

On white

2.20
#C3AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#C3AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C3AF40
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C3AF40#FFFFFF#000000##000000
##C3AF401.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB31
Deuteranopia (green-blind)
#C5B246
Tritanopia (blue-blind)
#D2A398
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c3af40;
/* rgb */ color: rgb(195, 175, 64);
/* oklch */ color: oklch(75.1% 0.131 98.9);
Tailwind
colors: {
  custom: {
    50: '#d9c67b',
    500: '#c3af40',
    950: '#000000',
  },
}
SCSS
$custom: #c3af40;
$custom-light: #d9c67b;
$custom-dark: #000000;
JSON
{
  "hex": "#c3af40",
  "rgb": {
    "r": 195,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 50.84,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.75077,
    "c": 0.13056,
    "h": 98.9
  },
  "luminance": 0.42632
}

Semantic roles & 50–950 ramp

primary
#C3AF40
secondary
#929BCC
accent
#62DC4C
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C3AF40

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

Preview Lab → · Contrast checker → · Palette generator →

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