#C2A540#C2A540

#C2A540 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.9% C 0.123 H 92.9°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#C2A540
RGBrgb(194, 165, 64)
HSLhsl(47, 52%, 51%)
HSVhsv(47, 67%, 76%)
CMYKcmyk(0%, 14.9%, 67%, 23.9%)
CIE-LABlab(68.57, -0.67, 54.39)
CIE-LCHlch(68.57, 54.39, 90.70°)
OKLaboklab(72.89% -0.0063 0.1229)
OKLCHoklch(72.89% 0.123 92.9)
XYZxyz(36.6305, 38.7518, 10.3999)
Luminance0.3875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2A540 #405DC2
analogous
#C26440 #C2A540 #9EC240
triadic
#C2A540 #40C2A5 #A540C2
tetradic
#C2A540 #40C264 #405DC2 #C2409E
square
#C2A540 #40C264 #405DC2 #C2409E
split-complementary
#C2A540 #409EC2 #6440C2
monochromatic
#675721 #957F30 #C2A540 #D1BB6E #E0D19D

Accessibility & contrast

On white

2.40
#C2A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#C2A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2A540
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2A540#FFFFFF#000000##000000
##C2A5401.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A234
Deuteranopia (green-blind)
#BDAB45
Tritanopia (blue-blind)
#D19890
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c2a540;
/* rgb */ color: rgb(194, 165, 64);
/* oklch */ color: oklch(72.9% 0.123 92.9);
Tailwind
colors: {
  custom: {
    50: '#d8bf7a',
    500: '#c2a540',
    950: '#000000',
  },
}
SCSS
$custom: #c2a540;
$custom-light: #d8bf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#c2a540",
  "rgb": {
    "r": 194,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 46.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.72891,
    "c": 0.12305,
    "h": 92.9
  },
  "luminance": 0.3875
}

Semantic roles & 50–950 ramp

primary
#C2A540
secondary
#929FCC
accent
#6CDB4D
background
#FDFBF7
surface
#FBF6EE
border
#D4D0C9
text
#151209
muted
#83817B

Preview Lab

Preview with #C2A540

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

Preview Lab → · Contrast checker → · Palette generator →

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