#7A8E1F#7A8E1F

#7A8E1F is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.0% C 0.133 H 119.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7A8E1F
RGBrgb(122, 142, 31)
HSLhsl(71, 64%, 34%)
HSVhsv(71, 78%, 56%)
CMYKcmyk(14.1%, 0%, 78.2%, 44.3%)
CIE-LABlab(55.67, -22.06, 52.41)
CIE-LCHlch(55.67, 56.87, 112.83°)
OKLaboklab(61.03% -0.0657 0.1153)
OKLCHoklch(61.03% 0.133 119.7)
XYZxyz(17.9467, 23.5826, 4.9025)
Luminance0.2358 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8E1F #331F8E
analogous
#8E6B1F #7A8E1F #438E1F
triadic
#7A8E1F #1F7A8E #8E1F7A
tetradic
#7A8E1F #1F8E6B #331F8E #8E1F43
square
#7A8E1F #1F8E6B #331F8E #8E1F43
split-complementary
#7A8E1F #1F438E #6B1F8E
monochromatic
#242A09 #4F5C14 #7A8E1F #A5C02A #C0D94F

Accessibility & contrast

On white

3.67
#7A8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7A8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8E1F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8E1F#FFFFFF#000000##000000
##7A8E1F1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978502
Deuteranopia (green-blind)
#958629
Tritanopia (blue-blind)
#818679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7a8e1f;
/* rgb */ color: rgb(122, 142, 31);
/* oklch */ color: oklch(61.0% 0.133 119.7);
Tailwind
colors: {
  custom: {
    50: '#a4af64',
    500: '#7a8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7a8e1f;
$custom-light: #a4af64;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8e1f",
  "rgb": {
    "r": 122,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 70.811,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.6103,
    "c": 0.13272,
    "h": 119.7
  },
  "luminance": 0.23583
}

Semantic roles & 50–950 ramp

primary
#7A8E1F
secondary
#614DBB
accent
#41E75F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7A8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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