#C7AF26#C7AF26

#C7AF26 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.3% C 0.146 H 98.4°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#C7AF26
RGBrgb(199, 175, 38)
HSLhsl(51, 68%, 46%)
HSVhsv(51, 81%, 78%)
CMYKcmyk(0%, 12.1%, 80.9%, 22%)
CIE-LABlab(71.52, -4.94, 66.93)
CIE-LCHlch(71.52, 67.11, 94.22°)
OKLaboklab(75.28% -0.0215 0.1445)
OKLCHoklch(75.28% 0.146 98.4)
XYZxyz(39.2351, 42.9441, 8.0558)
Luminance0.4294 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7AF26 #263EC7
analogous
#C75F26 #C7AF26 #8FC726
triadic
#C7AF26 #26C7AF #AF26C7
tetradic
#C7AF26 #26C75F #263EC7 #C7268F
square
#C7AF26 #26C75F #263EC7 #C7268F
split-complementary
#C7AF26 #268FC7 #5F26C7
monochromatic
#605512 #94821C #C7AF26 #DDC84D #E7D881

Accessibility & contrast

On white

2.19
#C7AF26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#C7AF26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7AF26
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7AF26#FFFFFF#000000##000000
##C7AF261.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C7B331
Tritanopia (blue-blind)
#D7A196
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #c7af26;
/* rgb */ color: rgb(199, 175, 38);
/* oklch */ color: oklch(75.3% 0.146 98.4);
Tailwind
colors: {
  custom: {
    50: '#dcc66e',
    500: '#c7af26',
    950: '#000000',
  },
}
SCSS
$custom: #c7af26;
$custom-light: #dcc66e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7af26",
  "rgb": {
    "r": 199,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 51.056,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75281,
    "c": 0.14605,
    "h": 98.4
  },
  "luminance": 0.42942
}

Semantic roles & 50–950 ramp

primary
#C7AF26
secondary
#7986CF
accent
#57EB3D
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161208
muted
#84817B

Preview Lab

Preview with #C7AF26

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

Preview Lab → · Contrast checker → · Palette generator →

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