#C7A231#C7A231

#C7A231 is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.7% C 0.132 H 89.9°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#C7A231
RGBrgb(199, 162, 49)
HSLhsl(45, 60%, 49%)
HSVhsv(45, 75%, 78%)
CMYKcmyk(0%, 18.6%, 75.4%, 22%)
CIE-LABlab(68.17, 2.37, 60.22)
CIE-LCHlch(68.17, 60.27, 87.75°)
OKLaboklab(72.66% 0.0003 0.1323)
OKLCHoklch(72.66% 0.132 89.9)
XYZxyz(37.0301, 38.2069, 8.3294)
Luminance0.3821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A231 #3156C7
analogous
#C75731 #C7A231 #A1C731
triadic
#C7A231 #31C7A2 #A231C7
tetradic
#C7A231 #31C757 #3156C7 #C731A1
square
#C7A231 #31C757 #3156C7 #C731A1
split-complementary
#C7A231 #31A1C7 #5731C7
monochromatic
#655219 #967A25 #C7A231 #D7B95E #E3CF8F

Accessibility & contrast

On white

2.43
#C7A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#C7A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A231
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A231#FFFFFF#000000##000000
##C7A2311.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A01E
Deuteranopia (green-blind)
#BEAA37
Tritanopia (blue-blind)
#D8948C
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c7a231;
/* rgb */ color: rgb(199, 162, 49);
/* oklch */ color: oklch(72.7% 0.132 89.9);
Tailwind
colors: {
  custom: {
    50: '#dcbd71',
    500: '#c7a231',
    950: '#000000',
  },
}
SCSS
$custom: #c7a231;
$custom-light: #dcbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a231",
  "rgb": {
    "r": 199,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 45.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.72656,
    "c": 0.1323,
    "h": 89.9
  },
  "luminance": 0.38205
}

Semantic roles & 50–950 ramp

primary
#C7A231
secondary
#8698CE
accent
#6CE444
background
#FEFBF7
surface
#FCF6ED
border
#D5D0C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C7A231

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

Preview Lab → · Contrast checker → · Palette generator →

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