#C7A226#C7A226

#C7A226 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.6% C 0.138 H 90.8°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#C7A226
RGBrgb(199, 162, 38)
HSLhsl(46, 68%, 46%)
HSVhsv(46, 81%, 78%)
CMYKcmyk(0%, 18.6%, 80.9%, 22%)
CIE-LABlab(68.11, 1.95, 63.95)
CIE-LCHlch(68.11, 63.98, 88.25°)
OKLaboklab(72.59% -0.0019 0.138)
OKLCHoklch(72.59% 0.138 90.8)
XYZxyz(36.8256, 38.1251, 7.2526)
Luminance0.3812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A226 #264BC7
analogous
#C75226 #C7A226 #9CC726
triadic
#C7A226 #26C7A2 #A226C7
tetradic
#C7A226 #26C752 #264BC7 #C7269C
square
#C7A226 #26C752 #264BC7 #C7269C
split-complementary
#C7A226 #269CC7 #5226C7
monochromatic
#604E12 #94781C #C7A226 #DDBC4D #E7CF81

Accessibility & contrast

On white

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

On black

8.62
#C7A226 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A226
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A226#FFFFFF#000000##000000
##C7A2261.002.438.628.62
#FFFFFF2.431.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A003
Deuteranopia (green-blind)
#BEAA2E
Tritanopia (blue-blind)
#D8948B
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c7a226;
/* rgb */ color: rgb(199, 162, 38);
/* oklch */ color: oklch(72.6% 0.138 90.8);
Tailwind
colors: {
  custom: {
    50: '#ddbd6c',
    500: '#c7a226',
    950: '#000000',
  },
}
SCSS
$custom: #c7a226;
$custom-light: #ddbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a226",
  "rgb": {
    "r": 199,
    "g": 162,
    "b": 38
  },
  "hsl": {
    "h": 46.211,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.72589,
    "c": 0.13801,
    "h": 90.8
  },
  "luminance": 0.38123
}

Semantic roles & 50–950 ramp

primary
#C7A226
secondary
#798DCF
accent
#65EB3D
background
#FEFBF6
surface
#FCF6EC
border
#D5D0C7
text
#161207
muted
#84817A

Preview Lab

Preview with #C7A226

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

Preview Lab → · Contrast checker → · Palette generator →

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