#C7A52A#C7A52A

#C7A52A is a light, vivid yellow. Relative luminance 0.392; OKLCH L 73.2% C 0.138 H 92.4°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#C7A52A
RGBrgb(199, 165, 42)
HSLhsl(47, 65%, 47%)
HSVhsv(47, 79%, 78%)
CMYKcmyk(0%, 17.1%, 78.9%, 22%)
CIE-LABlab(68.91, 0.49, 63.37)
CIE-LCHlch(68.91, 63.38, 89.56°)
OKLaboklab(73.23% -0.0057 0.1376)
OKLCHoklch(73.23% 0.138 92.4)
XYZxyz(37.4284, 39.2219, 7.7892)
Luminance0.3922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A52A #2A4CC7
analogous
#C7562A #C7A52A #9BC72A
triadic
#C7A52A #2AC7A5 #A52AC7
tetradic
#C7A52A #2AC756 #2A4CC7 #C72A9B
square
#C7A52A #2AC756 #2A4CC7 #C72A9B
split-complementary
#C7A52A #2A9BC7 #562AC7
monochromatic
#625115 #947B1F #C7A52A #DBBD53 #E5D186

Accessibility & contrast

On white

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

On black

8.84
#C7A52A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A52A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A52A#FFFFFF#000000##000000
##C7A52A1.002.378.848.84
#FFFFFF2.371.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A20D
Deuteranopia (green-blind)
#C0AC32
Tritanopia (blue-blind)
#D8978E
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c7a52a;
/* rgb */ color: rgb(199, 165, 42);
/* oklch */ color: oklch(73.2% 0.138 92.4);
Tailwind
colors: {
  custom: {
    50: '#ddbf6e',
    500: '#c7a52a',
    950: '#000000',
  },
}
SCSS
$custom: #c7a52a;
$custom-light: #ddbf6e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a52a",
  "rgb": {
    "r": 199,
    "g": 165,
    "b": 42
  },
  "hsl": {
    "h": 47.006,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73226,
    "c": 0.13772,
    "h": 92.4
  },
  "luminance": 0.3922
}

Semantic roles & 50–950 ramp

primary
#C7A52A
secondary
#7E8FCF
accent
#64E840
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C7A52A

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

Preview Lab → · Contrast checker → · Palette generator →

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