#7F8517#7F8517

#7F8517 is a mid, vivid yellow. Relative luminance 0.213; OKLCH L 59.2% C 0.125 H 112.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7F8517
RGBrgb(127, 133, 23)
HSLhsl(63, 71%, 31%)
HSVhsv(63, 83%, 52%)
CMYKcmyk(4.5%, 0%, 82.7%, 47.8%)
CIE-LABlab(53.33, -15.50, 52.94)
CIE-LCHlch(53.33, 55.16, 106.32°)
OKLaboklab(59.24% -0.0486 0.1148)
OKLCHoklch(59.24% 0.125 112.9)
XYZxyz(17.2952, 21.3493, 4.0202)
Luminance0.2135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8517 #1D1785
analogous
#855417 #7F8517 #488517
triadic
#7F8517 #177F85 #85177F
tetradic
#7F8517 #178554 #1D1785 #851748
square
#7F8517 #178554 #1D1785 #851748
split-complementary
#7F8517 #174885 #541785
monochromatic
#1B1D05 #4D510E #7F8517 #B1B920 #D4DD3A

Accessibility & contrast

On white

3.98
#7F8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7F8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8517
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8517#FFFFFF#000000##000000
##7F85171.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#908022
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f8517;
/* rgb */ color: rgb(127, 133, 23);
/* oklch */ color: oklch(59.2% 0.125 112.9);
Tailwind
colors: {
  custom: {
    50: '#a8a860',
    500: '#7f8517',
    950: '#000000',
  },
}
SCSS
$custom: #7f8517;
$custom-light: #a8a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8517",
  "rgb": {
    "r": 127,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 63.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.59237,
    "c": 0.12461,
    "h": 112.9
  },
  "luminance": 0.21349
}

Semantic roles & 50–950 ramp

primary
#7F8517
secondary
#453FB9
accent
#3BED44
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8517

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

Preview Lab → · Contrast checker → · Palette generator →

#7F8517 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva