#7F8717#7F8717

#7F8717 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.127 H 114.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7F8717
RGBrgb(127, 135, 23)
HSLhsl(64, 71%, 31%)
HSVhsv(64, 83%, 53%)
CMYKcmyk(5.9%, 0%, 83%, 47.1%)
CIE-LABlab(53.92, -16.56, 53.45)
CIE-LCHlch(53.92, 55.96, 107.21°)
OKLaboklab(59.71% -0.0515 0.1159)
OKLCHoklch(59.71% 0.127 114)
XYZxyz(17.5716, 21.9022, 4.1124)
Luminance0.2190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8717 #1F1787
analogous
#875717 #7F8717 #478717
triadic
#7F8717 #177F87 #87177F
tetradic
#7F8717 #178757 #1F1787 #871747
square
#7F8717 #178757 #1F1787 #871747
split-complementary
#7F8717 #174787 #571787
monochromatic
#1D1E05 #4E530E #7F8717 #B0BB20 #D2DE3B

Accessibility & contrast

On white

3.90
#7F8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7F8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8717
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8717#FFFFFF#000000##000000
##7F87171.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8717;
/* rgb */ color: rgb(127, 135, 23);
/* oklch */ color: oklch(59.7% 0.127 114.0);
Tailwind
colors: {
  custom: {
    50: '#a8a960',
    500: '#7f8717',
    950: '#000000',
  },
}
SCSS
$custom: #7f8717;
$custom-light: #a8a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8717",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 64.286,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59712,
    "c": 0.1268,
    "h": 114
  },
  "luminance": 0.21902
}

Semantic roles & 50–950 ramp

primary
#7F8717
secondary
#483FBB
accent
#3AEE47
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F8717

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

Preview Lab → · Contrast checker → · Palette generator →

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