#7F971B#7F971B

#7F971B is a light, vivid yellow-green. Relative luminance 0.267; OKLCH L 63.6% C 0.143 H 120.7°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7F971B
RGBrgb(127, 151, 27)
HSLhsl(72, 70%, 35%)
HSVhsv(72, 82%, 59%)
CMYKcmyk(15.9%, 0%, 82.1%, 40.8%)
CIE-LABlab(58.72, -24.58, 56.54)
CIE-LCHlch(58.72, 61.65, 113.50°)
OKLaboklab(63.58% -0.0732 0.1232)
OKLCHoklch(63.58% 0.143 120.7)
XYZxyz(20.0172, 26.7244, 5.1405)
Luminance0.2672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F971B #331B97
analogous
#97711B #7F971B #41971B
triadic
#7F971B #1B7F97 #971B7F
tetradic
#7F971B #1B9771 #331B97 #971B41
square
#7F971B #1B9771 #331B97 #971B41
split-complementary
#7F971B #1B4197 #711B97
monochromatic
#282F08 #536312 #7F971B #ABCB24 #C3DF4D

Accessibility & contrast

On white

3.31
#7F971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#7F971B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F971B
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F971B#FFFFFF#000000##000000
##7F971B1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D28
Tritanopia (blue-blind)
#878F81
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f971b;
/* rgb */ color: rgb(127, 151, 27);
/* oklch */ color: oklch(63.6% 0.143 120.7);
Tailwind
colors: {
  custom: {
    50: '#a8b564',
    500: '#7f971b',
    950: '#000000',
  },
}
SCSS
$custom: #7f971b;
$custom-light: #a8b564;
$custom-dark: #000000;
JSON
{
  "hex": "#7f971b",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 71.613,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.63576,
    "c": 0.14331,
    "h": 120.7
  },
  "luminance": 0.26724
}

Semantic roles & 50–950 ramp

primary
#7F971B
secondary
#634CC1
accent
#3BEC5E
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F971B

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

Preview Lab → · Contrast checker → · Palette generator →

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