#7F951B#7F951B

#7F951B is a light, vivid yellow-green. Relative luminance 0.261; OKLCH L 63.1% C 0.141 H 120.0°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7F951B
RGBrgb(127, 149, 27)
HSLhsl(71, 69%, 35%)
HSVhsv(71, 82%, 58%)
CMYKcmyk(14.8%, 0%, 81.9%, 41.6%)
CIE-LABlab(58.12, -23.59, 56.01)
CIE-LCHlch(58.12, 60.77, 112.84°)
OKLaboklab(63.09% -0.0705 0.1221)
OKLCHoklch(63.09% 0.141 120)
XYZxyz(19.6981, 26.0861, 5.0341)
Luminance0.2609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F951B #311B95
analogous
#956E1B #7F951B #42951B
triadic
#7F951B #1B7F95 #951B7F
tetradic
#7F951B #1B956E #311B95 #951B42
square
#7F951B #1B956E #311B95 #951B42
split-complementary
#7F951B #1B4295 #6E1B95
monochromatic
#272D08 #536112 #7F951B #ABC924 #C4DF4C

Accessibility & contrast

On white

3.38
#7F951B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#7F951B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F951B
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F951B#FFFFFF#000000##000000
##7F951B1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9F8C00
Deuteranopia (green-blind)
#9C8C28
Tritanopia (blue-blind)
#878D7F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #7f951b;
/* rgb */ color: rgb(127, 149, 27);
/* oklch */ color: oklch(63.1% 0.141 120.0);
Tailwind
colors: {
  custom: {
    50: '#a8b464',
    500: '#7f951b',
    950: '#000000',
  },
}
SCSS
$custom: #7f951b;
$custom-light: #a8b464;
$custom-dark: #000000;
JSON
{
  "hex": "#7f951b",
  "rgb": {
    "r": 127,
    "g": 149,
    "b": 27
  },
  "hsl": {
    "h": 70.82,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.63092,
    "c": 0.14096,
    "h": 120
  },
  "luminance": 0.26086
}

Semantic roles & 50–950 ramp

primary
#7F951B
secondary
#604BC1
accent
#3CEC5B
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7F951B

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

Preview Lab → · Contrast checker → · Palette generator →

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