#C2A731#C2A731

#C2A731 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 73.2% C 0.134 H 95.7°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#C2A731
RGBrgb(194, 167, 49)
HSLhsl(49, 60%, 48%)
HSVhsv(49, 75%, 76%)
CMYKcmyk(0%, 13.9%, 74.7%, 23.9%)
CIE-LABlab(68.99, -2.50, 60.83)
CIE-LCHlch(68.99, 60.88, 92.35°)
OKLaboklab(73.19% -0.0133 0.1338)
OKLCHoklch(73.19% 0.134 95.7)
XYZxyz(36.6232, 39.3305, 8.5677)
Luminance0.3933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2A731 #314CC2
analogous
#C25F31 #C2A731 #94C231
triadic
#C2A731 #31C2A7 #A731C2
tetradic
#C2A731 #31C25F #314CC2 #C23194
square
#C2A731 #31C25F #314CC2 #C23194
split-complementary
#C2A731 #3194C2 #5F31C2
monochromatic
#605318 #917D25 #C2A731 #D6BF5B #E2D28C

Accessibility & contrast

On white

2.37
#C2A731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#C2A731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2A731
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2A731#FFFFFF#000000##000000
##C2A7311.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A31C
Deuteranopia (green-blind)
#BFAC38
Tritanopia (blue-blind)
#D29A90
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c2a731;
/* rgb */ color: rgb(194, 167, 49);
/* oklch */ color: oklch(73.2% 0.134 95.7);
Tailwind
colors: {
  custom: {
    50: '#d8c072',
    500: '#c2a731',
    950: '#000000',
  },
}
SCSS
$custom: #c2a731;
$custom-light: #d8c072;
$custom-dark: #000000;
JSON
{
  "hex": "#c2a731",
  "rgb": {
    "r": 194,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 48.828,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.73188,
    "c": 0.13447,
    "h": 95.7
  },
  "luminance": 0.39329
}

Semantic roles & 50–950 ramp

primary
#C2A731
secondary
#8390CC
accent
#62E345
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #C2A731

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

Preview Lab → · Contrast checker → · Palette generator →

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