#7F8617#7F8617

#7F8617 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.5% C 0.126 H 113.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7F8617
RGBrgb(127, 134, 23)
HSLhsl(64, 71%, 31%)
HSVhsv(64, 83%, 53%)
CMYKcmyk(5.2%, 0%, 82.8%, 47.5%)
CIE-LABlab(53.63, -16.03, 53.20)
CIE-LCHlch(53.63, 55.56, 106.77°)
OKLaboklab(59.47% -0.05 0.1153)
OKLCHoklch(59.47% 0.126 113.4)
XYZxyz(17.4327, 21.6245, 4.0661)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8617 #1E1786
analogous
#865517 #7F8617 #478617
triadic
#7F8617 #177F86 #86177F
tetradic
#7F8617 #178655 #1E1786 #861747
square
#7F8617 #178655 #1E1786 #861747
split-complementary
#7F8617 #174786 #551786
monochromatic
#1C1E05 #4D520E #7F8617 #B1BA20 #D3DD3A

Accessibility & contrast

On white

3.94
#7F8617 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7F8617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8617
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8617#FFFFFF#000000##000000
##7F86171.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#918122
Tritanopia (blue-blind)
#887D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8617;
/* rgb */ color: rgb(127, 134, 23);
/* oklch */ color: oklch(59.5% 0.126 113.4);
Tailwind
colors: {
  custom: {
    50: '#a8a960',
    500: '#7f8617',
    950: '#000000',
  },
}
SCSS
$custom: #7f8617;
$custom-light: #a8a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8617",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 63.784,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59474,
    "c": 0.1257,
    "h": 113.4
  },
  "luminance": 0.21624
}

Semantic roles & 50–950 ramp

primary
#7F8617
secondary
#473FBA
accent
#3AED46
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F8617

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

Preview Lab → · Contrast checker → · Palette generator →

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