#C2A840#C2A840

#C2A840 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.5% C 0.125 H 95.0°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#C2A840
RGBrgb(194, 168, 64)
HSLhsl(48, 52%, 51%)
HSVhsv(48, 67%, 76%)
CMYKcmyk(0%, 13.4%, 67%, 23.9%)
CIE-LABlab(69.36, -2.26, 55.22)
CIE-LCHlch(69.36, 55.27, 92.35°)
OKLaboklab(73.52% -0.0109 0.1247)
OKLCHoklch(73.52% 0.125 95)
XYZxyz(37.1780, 39.8467, 10.5824)
Luminance0.3985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2A840 #405AC2
analogous
#C26740 #C2A840 #9BC240
triadic
#C2A840 #40C2A8 #A840C2
tetradic
#C2A840 #40C267 #405AC2 #C2409B
square
#C2A840 #40C267 #405AC2 #C2409B
split-complementary
#C2A840 #409BC2 #6740C2
monochromatic
#675921 #958130 #C2A840 #D1BD6E #E0D29D

Accessibility & contrast

On white

2.34
#C2A840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#C2A840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2A840
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2A840#FFFFFF#000000##000000
##C2A8401.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BFAD45
Tritanopia (blue-blind)
#D19B92
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c2a840;
/* rgb */ color: rgb(194, 168, 64);
/* oklch */ color: oklch(73.5% 0.125 95.0);
Tailwind
colors: {
  custom: {
    50: '#d8c17a',
    500: '#c2a840',
    950: '#000000',
  },
}
SCSS
$custom: #c2a840;
$custom-light: #d8c17a;
$custom-dark: #000000;
JSON
{
  "hex": "#c2a840",
  "rgb": {
    "r": 194,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 48,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.73515,
    "c": 0.12513,
    "h": 95
  },
  "luminance": 0.39845
}

Semantic roles & 50–950 ramp

primary
#C2A840
secondary
#929ECC
accent
#69DB4D
background
#FDFBF7
surface
#FBF7EE
border
#D4D0C9
text
#151209
muted
#83817B

Preview Lab

Preview with #C2A840

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

Preview Lab → · Contrast checker → · Palette generator →

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