#C7A126#C7A126

#C7A126 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 72.4% C 0.138 H 90.2°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#C7A126
RGBrgb(199, 161, 38)
HSLhsl(46, 68%, 46%)
HSVhsv(46, 81%, 78%)
CMYKcmyk(0%, 19.1%, 80.9%, 22%)
CIE-LABlab(67.85, 2.49, 63.72)
CIE-LCHlch(67.85, 63.77, 87.76°)
OKLaboklab(72.39% -0.0004 0.1375)
OKLCHoklch(72.39% 0.138 90.2)
XYZxyz(36.6502, 37.7742, 7.1941)
Luminance0.3777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A126 #264CC7
analogous
#C75126 #C7A126 #9CC726
triadic
#C7A126 #26C7A1 #A126C7
tetradic
#C7A126 #26C751 #264CC7 #C7269C
square
#C7A126 #26C751 #264CC7 #C7269C
split-complementary
#C7A126 #269CC7 #5126C7
monochromatic
#604E12 #94771C #C7A126 #DDBB4D #E7CF81

Accessibility & contrast

On white

2.45
#C7A126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#C7A126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A126
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A126#FFFFFF#000000##000000
##C7A1261.002.458.558.55
#FFFFFF2.451.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B49F03
Deuteranopia (green-blind)
#BEAA2E
Tritanopia (blue-blind)
#D8938A
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c7a126;
/* rgb */ color: rgb(199, 161, 38);
/* oklch */ color: oklch(72.4% 0.138 90.2);
Tailwind
colors: {
  custom: {
    50: '#ddbc6c',
    500: '#c7a126',
    950: '#000000',
  },
}
SCSS
$custom: #c7a126;
$custom-light: #ddbc6c;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a126",
  "rgb": {
    "r": 199,
    "g": 161,
    "b": 38
  },
  "hsl": {
    "h": 45.839,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.72385,
    "c": 0.1375,
    "h": 90.2
  },
  "luminance": 0.37772
}

Semantic roles & 50–950 ramp

primary
#C7A126
secondary
#798ECF
accent
#66EB3D
background
#FEFBF6
surface
#FCF6EC
border
#D5D0C7
text
#161107
muted
#84807A

Preview Lab

Preview with #C7A126

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

Preview Lab → · Contrast checker → · Palette generator →

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