#C3AF42#C3AF42

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

Color values

HEX#C3AF42
RGBrgb(195, 175, 66)
HSLhsl(51, 52%, 51%)
HSVhsv(51, 66%, 76%)
CMYKcmyk(0%, 10.3%, 66.2%, 23.5%)
CIE-LABlab(71.32, -5.41, 56.45)
CIE-LCHlch(71.32, 56.71, 95.48°)
OKLaboklab(75.1% -0.0197 0.1276)
OKLCHoklch(75.1% 0.129 98.8)
XYZxyz(38.8207, 42.6572, 11.3420)
Luminance0.4265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C3AF42 #4256C3
analogous
#C36E42 #C3AF42 #96C342
triadic
#C3AF42 #42C3AF #AF42C3
tetradic
#C3AF42 #42C36E #4256C3 #C34296
square
#C3AF42 #42C36E #4256C3 #C34296
split-complementary
#C3AF42 #4296C3 #6E42C3
monochromatic
#695E21 #988830 #C3AF42 #D2C370 #E0D69F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C3AF42#FFFFFF#000000##000000
##C3AF421.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)
#BFAB34
Deuteranopia (green-blind)
#C5B248
Tritanopia (blue-blind)
#D2A398
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c3af42;
/* rgb */ color: rgb(195, 175, 66);
/* oklch */ color: oklch(75.1% 0.129 98.8);
Tailwind
colors: {
  custom: {
    50: '#d8c67c',
    500: '#c3af42',
    950: '#000000',
  },
}
SCSS
$custom: #c3af42;
$custom-light: #d8c67c;
$custom-dark: #000000;
JSON
{
  "hex": "#c3af42",
  "rgb": {
    "r": 195,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 50.698,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.75095,
    "c": 0.12907,
    "h": 98.8
  },
  "luminance": 0.42655
}

Semantic roles & 50–950 ramp

primary
#C3AF42
secondary
#949DCD
accent
#63DB4D
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C3AF42

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

Preview Lab → · Contrast checker → · Palette generator →

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