#7F8E17#7F8E17

#7F8E17 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.135 H 117.2°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7F8E17
RGBrgb(127, 142, 23)
HSLhsl(68, 72%, 32%)
HSVhsv(68, 84%, 56%)
CMYKcmyk(10.6%, 0%, 83.8%, 44.3%)
CIE-LABlab(56.01, -20.19, 55.27)
CIE-LCHlch(56.01, 58.84, 110.07°)
OKLaboklab(61.39% -0.0615 0.1198)
OKLCHoklch(61.39% 0.135 117.2)
XYZxyz(18.5805, 23.9201, 4.4487)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E17 #26178E
analogous
#8E6217 #7F8E17 #448E17
triadic
#7F8E17 #177F8E #8E177F
tetradic
#7F8E17 #178E62 #26178E #8E1744
square
#7F8E17 #178E62 #26178E #8E1744
split-complementary
#7F8E17 #17448E #62178E
monochromatic
#212506 #50590E #7F8E17 #AEC320 #CCE03F

Accessibility & contrast

On white

3.63
#7F8E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7F8E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E17
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E17#FFFFFF#000000##000000
##7F8E171.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#978724
Tritanopia (blue-blind)
#878579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e17;
/* rgb */ color: rgb(127, 142, 23);
/* oklch */ color: oklch(61.4% 0.135 117.2);
Tailwind
colors: {
  custom: {
    50: '#a8af61',
    500: '#7f8e17',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e17;
$custom-light: #a8af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e17",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 23
  },
  "hsl": {
    "h": 67.563,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61387,
    "c": 0.13463,
    "h": 117.2
  },
  "luminance": 0.2392
}

Semantic roles & 50–950 ramp

primary
#7F8E17
secondary
#5140C0
accent
#39EF50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8E17

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

Preview Lab → · Contrast checker → · Palette generator →

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