#7E9B1F#7E9B1F

#7E9B1F is a light, vivid yellow-green. Relative luminance 0.280; OKLCH L 64.5% C 0.147 H 122.6°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7E9B1F
RGBrgb(126, 155, 31)
HSLhsl(74, 67%, 36%)
HSVhsv(74, 80%, 61%)
CMYKcmyk(18.7%, 0%, 80%, 39.2%)
CIE-LABlab(59.87, -26.81, 56.38)
CIE-LCHlch(59.87, 62.43, 115.43°)
OKLaboklab(64.49% -0.079 0.1236)
OKLCHoklch(64.49% 0.147 122.6)
XYZxyz(20.5732, 27.9772, 5.6123)
Luminance0.2798 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E9B1F #3C1F9B
analogous
#9B7A1F #7E9B1F #409B1F
triadic
#7E9B1F #1F7E9B #9B1F7E
tetradic
#7E9B1F #1F9B7A #3C1F9B #9B1F40
square
#7E9B1F #1F9B7A #3C1F9B #9B1F40
split-complementary
#7E9B1F #1F409B #7A1F9B
monochromatic
#2B350B #556815 #7E9B1F #A7CE29 #BEDD57

Accessibility & contrast

On white

3.18
#7E9B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#7E9B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E9B1F
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E9B1F#FFFFFF#000000##000000
##7E9B1F1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A1902C
Tritanopia (blue-blind)
#859384
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #7e9b1f;
/* rgb */ color: rgb(126, 155, 31);
/* oklch */ color: oklch(64.5% 0.147 122.6);
Tailwind
colors: {
  custom: {
    50: '#a7b866',
    500: '#7e9b1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e9b1f;
$custom-light: #a7b866;
$custom-dark: #000000;
JSON
{
  "hex": "#7e9b1f",
  "rgb": {
    "r": 126,
    "g": 155,
    "b": 31
  },
  "hsl": {
    "h": 74.032,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64493,
    "c": 0.14663,
    "h": 122.6
  },
  "luminance": 0.27977
}

Semantic roles & 50–950 ramp

primary
#7E9B1F
secondary
#6E55C1
accent
#3EEA66
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7E9B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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