#C2A538#C2A538

#C2A538 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.8% C 0.129 H 93.8°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#C2A538
RGBrgb(194, 165, 56)
HSLhsl(47, 55%, 49%)
HSVhsv(47, 71%, 76%)
CMYKcmyk(0%, 14.9%, 71.1%, 23.9%)
CIE-LABlab(68.51, -1.10, 57.67)
CIE-LCHlch(68.51, 57.68, 91.10°)
OKLaboklab(72.82% -0.0085 0.1285)
OKLCHoklch(72.82% 0.129 93.8)
XYZxyz(36.4190, 38.6672, 9.2859)
Luminance0.3866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2A538 #3855C2
analogous
#C26038 #C2A538 #9AC238
triadic
#C2A538 #38C2A5 #A538C2
tetradic
#C2A538 #38C260 #3855C2 #C2389A
square
#C2A538 #38C260 #3855C2 #C2389A
split-complementary
#C2A538 #389AC2 #6038C2
monochromatic
#63541D #937D2A #C2A538 #D2BB65 #E0D094

Accessibility & contrast

On white

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

On black

8.73
#C2A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2A538
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2A538#FFFFFF#000000##000000
##C2A5381.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A228
Deuteranopia (green-blind)
#BEAB3E
Tritanopia (blue-blind)
#D2988F
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c2a538;
/* rgb */ color: rgb(194, 165, 56);
/* oklch */ color: oklch(72.8% 0.129 93.8);
Tailwind
colors: {
  custom: {
    50: '#d8bf75',
    500: '#c2a538',
    950: '#000000',
  },
}
SCSS
$custom: #c2a538;
$custom-light: #d8bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#c2a538",
  "rgb": {
    "r": 194,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 47.391,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.72823,
    "c": 0.12873,
    "h": 93.8
  },
  "luminance": 0.38665
}

Semantic roles & 50–950 ramp

primary
#C2A538
secondary
#8A98CB
accent
#69DF49
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151209
muted
#83817B

Preview Lab

Preview with #C2A538

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

Preview Lab → · Contrast checker → · Palette generator →

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