#C7A626#C7A626

#C7A626 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 73.4% C 0.140 H 93.3°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#C7A626
RGBrgb(199, 166, 38)
HSLhsl(48, 68%, 46%)
HSVhsv(48, 81%, 78%)
CMYKcmyk(0%, 16.6%, 80.9%, 22%)
CIE-LABlab(69.15, -0.18, 64.86)
CIE-LCHlch(69.15, 64.86, 90.16°)
OKLaboklab(73.41% -0.008 0.14)
OKLCHoklch(73.41% 0.14 93.3)
XYZxyz(37.5414, 39.5568, 7.4912)
Luminance0.3955 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7A626 #2647C7
analogous
#C75626 #C7A626 #98C726
triadic
#C7A626 #26C7A6 #A626C7
tetradic
#C7A626 #26C756 #2647C7 #C72698
square
#C7A626 #26C756 #2647C7 #C72698
split-complementary
#C7A626 #2698C7 #5626C7
monochromatic
#605012 #947B1C #C7A626 #DDC04D #E7D281

Accessibility & contrast

On white

2.36
#C7A626 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#C7A626 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7A626
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7A626#FFFFFF#000000##000000
##C7A6261.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#C1AD2F
Tritanopia (blue-blind)
#D8988E
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c7a626;
/* rgb */ color: rgb(199, 166, 38);
/* oklch */ color: oklch(73.4% 0.140 93.3);
Tailwind
colors: {
  custom: {
    50: '#ddc06c',
    500: '#c7a626',
    950: '#000000',
  },
}
SCSS
$custom: #c7a626;
$custom-light: #ddc06c;
$custom-dark: #000000;
JSON
{
  "hex": "#c7a626",
  "rgb": {
    "r": 199,
    "g": 166,
    "b": 38
  },
  "hsl": {
    "h": 47.702,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.7341,
    "c": 0.14021,
    "h": 93.3
  },
  "luminance": 0.39554
}

Semantic roles & 50–950 ramp

primary
#C7A626
secondary
#798BCF
accent
#61EB3D
background
#FEFBF6
surface
#FCF7EC
border
#D5D0C7
text
#161208
muted
#84817B

Preview Lab

Preview with #C7A626

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

Preview Lab → · Contrast checker → · Palette generator →

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