#C7A72A#C7A72A

#C7A72A is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.6% C 0.139 H 93.6°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#C7A72A
RGBrgb(199, 167, 42)
HSLhsl(48, 65%, 47%)
HSVhsv(48, 79%, 78%)
CMYKcmyk(0%, 16.1%, 78.9%, 22%)
CIE-LABlab(69.43, -0.58, 63.85)
CIE-LCHlch(69.43, 63.85, 90.52°)
OKLaboklab(73.64% -0.0088 0.1386)
OKLCHoklch(73.64% 0.139 93.6)
XYZxyz(37.7920, 39.9490, 7.9104)
Luminance0.3995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A72A #2A4AC7
analogous
#C7592A #C7A72A #98C72A
triadic
#C7A72A #2AC7A7 #A72AC7
tetradic
#C7A72A #2AC759 #2A4AC7 #C72A98
square
#C7A72A #2AC759 #2A4AC7 #C72A98
split-complementary
#C7A72A #2A98C7 #592AC7
monochromatic
#625215 #947D1F #C7A72A #DBBF53 #E5D286

Accessibility & contrast

On white

2.34
#C7A72A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.99
#C7A72A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A72A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A72A#FFFFFF#000000##000000
##C7A72A1.002.348.998.99
#FFFFFF2.341.0021.0021.00
#0000008.9921.001.001.00
##0000008.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA40C
Deuteranopia (green-blind)
#C2AE32
Tritanopia (blue-blind)
#D89990
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c7a72a;
/* rgb */ color: rgb(199, 167, 42);
/* oklch */ color: oklch(73.6% 0.139 93.6);
Tailwind
colors: {
  custom: {
    50: '#dcc06e',
    500: '#c7a72a',
    950: '#000000',
  },
}
SCSS
$custom: #c7a72a;
$custom-light: #dcc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a72a",
  "rgb": {
    "r": 199,
    "g": 167,
    "b": 42
  },
  "hsl": {
    "h": 47.771,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.73638,
    "c": 0.13889,
    "h": 93.6
  },
  "luminance": 0.39947
}

Semantic roles & 50–950 ramp

primary
#C7A72A
secondary
#7E8ECF
accent
#62E840
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C7A72A

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

Preview Lab → · Contrast checker → · Palette generator →

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