#7EAF31#7EAF31

#7EAF31 is a light, vivid yellow-green. Relative luminance 0.353; OKLCH L 69.5% C 0.161 H 128.6°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7EAF31
RGBrgb(126, 175, 49)
HSLhsl(83, 56%, 44%)
HSVhsv(83, 72%, 69%)
CMYKcmyk(28%, 0%, 72%, 31.4%)
CIE-LABlab(65.99, -35.27, 56.12)
CIE-LCHlch(65.99, 66.28, 122.14°)
OKLaboklab(69.49% -0.1006 0.126)
OKLCHoklch(69.49% 0.161 128.6)
XYZxyz(24.4885, 35.3167, 8.4317)
Luminance0.3532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7EAF31 #6231AF
analogous
#AFA131 #7EAF31 #3FAF31
triadic
#7EAF31 #317EAF #AF317E
tetradic
#7EAF31 #31AFA1 #6231AF #AF313F
square
#7EAF31 #31AFA1 #6231AF #AF313F
split-complementary
#7EAF31 #313FAF #A131AF
monochromatic
#394F16 #5C7F24 #7EAF31 #9DCE4F #B7DB7F

Accessibility & contrast

On white

2.60
#7EAF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#7EAF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7EAF31
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7EAF31#FFFFFF#000000##000000
##7EAF311.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31B
Deuteranopia (green-blind)
#B19F3C
Tritanopia (blue-blind)
#82A796
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #7eaf31;
/* rgb */ color: rgb(126, 175, 49);
/* oklch */ color: oklch(69.5% 0.161 128.6);
Tailwind
colors: {
  custom: {
    50: '#a7c771',
    500: '#7eaf31',
    950: '#000000',
  },
}
SCSS
$custom: #7eaf31;
$custom-light: #a7c771;
$custom-dark: #000000;
JSON
{
  "hex": "#7eaf31",
  "rgb": {
    "r": 126,
    "g": 175,
    "b": 49
  },
  "hsl": {
    "h": 83.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69491,
    "c": 0.16123,
    "h": 128.6
  },
  "luminance": 0.35317
}

Semantic roles & 50–950 ramp

primary
#7EAF31
secondary
#9578C4
accent
#48E083
background
#FAFCF7
surface
#F4F8ED
border
#CED1C8
text
#101308
muted
#7F827B

Preview Lab

Preview with #7EAF31

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

Preview Lab → · Contrast checker → · Palette generator →

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