#C7AE26#C7AE26

#C7AE26 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 75.1% C 0.145 H 97.9°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#C7AE26
RGBrgb(199, 174, 38)
HSLhsl(51, 68%, 46%)
HSVhsv(51, 81%, 78%)
CMYKcmyk(0%, 12.6%, 80.9%, 22%)
CIE-LABlab(71.25, -4.41, 66.70)
CIE-LCHlch(71.25, 66.85, 93.79°)
OKLaboklab(75.07% -0.02 0.144)
OKLCHoklch(75.07% 0.145 97.9)
XYZxyz(39.0412, 42.5563, 7.9911)
Luminance0.4255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7AE26 #263FC7
analogous
#C75E26 #C7AE26 #90C726
triadic
#C7AE26 #26C7AE #AE26C7
tetradic
#C7AE26 #26C75E #263FC7 #C72690
square
#C7AE26 #26C75E #263FC7 #C72690
split-complementary
#C7AE26 #2690C7 #5E26C7
monochromatic
#605412 #94811C #C7AE26 #DDC74D #E7D781

Accessibility & contrast

On white

2.21
#C7AE26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#C7AE26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7AE26
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7AE26#FFFFFF#000000##000000
##C7AE261.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA00
Deuteranopia (green-blind)
#C7B231
Tritanopia (blue-blind)
#D7A095
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #c7ae26;
/* rgb */ color: rgb(199, 174, 38);
/* oklch */ color: oklch(75.1% 0.145 97.9);
Tailwind
colors: {
  custom: {
    50: '#dcc56d',
    500: '#c7ae26',
    950: '#000000',
  },
}
SCSS
$custom: #c7ae26;
$custom-light: #dcc56d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ae26",
  "rgb": {
    "r": 199,
    "g": 174,
    "b": 38
  },
  "hsl": {
    "h": 50.683,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75072,
    "c": 0.14534,
    "h": 97.9
  },
  "luminance": 0.42554
}

Semantic roles & 50–950 ramp

primary
#C7AE26
secondary
#7987CF
accent
#58EB3D
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C7AE26

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

Preview Lab → · Contrast checker → · Palette generator →

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