#C2A838#C2A838

#C2A838 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.4% C 0.131 H 95.7°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#C2A838
RGBrgb(194, 168, 56)
HSLhsl(49, 55%, 49%)
HSVhsv(49, 71%, 76%)
CMYKcmyk(0%, 13.4%, 71.1%, 23.9%)
CIE-LABlab(69.30, -2.70, 58.46)
CIE-LCHlch(69.30, 58.52, 92.64°)
OKLaboklab(73.45% -0.0131 0.1301)
OKLCHoklch(73.45% 0.131 95.7)
XYZxyz(36.9664, 39.7621, 9.4683)
Luminance0.3976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2A838 #3852C2
analogous
#C26338 #C2A838 #97C238
triadic
#C2A838 #38C2A8 #A838C2
tetradic
#C2A838 #38C263 #3852C2 #C23897
square
#C2A838 #38C263 #3852C2 #C23897
split-complementary
#C2A838 #3897C2 #6338C2
monochromatic
#63561D #937F2A #C2A838 #D2BE65 #E0D294

Accessibility & contrast

On white

2.35
#C2A838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#C2A838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2A838
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2A838#FFFFFF#000000##000000
##C2A8381.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c2a838;
/* rgb */ color: rgb(194, 168, 56);
/* oklch */ color: oklch(73.4% 0.131 95.7);
Tailwind
colors: {
  custom: {
    50: '#d8c175',
    500: '#c2a838',
    950: '#000000',
  },
}
SCSS
$custom: #c2a838;
$custom-light: #d8c175;
$custom-dark: #000000;
JSON
{
  "hex": "#c2a838",
  "rgb": {
    "r": 194,
    "g": 168,
    "b": 56
  },
  "hsl": {
    "h": 48.696,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.73447,
    "c": 0.13078,
    "h": 95.7
  },
  "luminance": 0.3976
}

Semantic roles & 50–950 ramp

primary
#C2A838
secondary
#8A97CB
accent
#65DF49
background
#FDFBF7
surface
#FBF7ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C2A838

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

Preview Lab → · Contrast checker → · Palette generator →

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