#7FA526#7FA526

#7FA526 is a light, vivid yellow-green. Relative luminance 0.316; OKLCH L 67.0% C 0.155 H 125.4°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7FA526
RGBrgb(127, 165, 38)
HSLhsl(78, 63%, 40%)
HSVhsv(78, 77%, 65%)
CMYKcmyk(23%, 0%, 77%, 35.3%)
CIE-LABlab(62.98, -30.86, 57.07)
CIE-LCHlch(62.98, 64.88, 118.40°)
OKLaboklab(67.04% -0.0895 0.1262)
OKLCHoklch(67.04% 0.155 125.4)
XYZxyz(22.5576, 31.5619, 6.7370)
Luminance0.3156 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7FA526 #4C26A5
analogous
#A58C26 #7FA526 #3FA526
triadic
#7FA526 #267FA5 #A5267F
tetradic
#7FA526 #26A58C #4C26A5 #A5263F
square
#7FA526 #26A58C #4C26A5 #A5263F
split-complementary
#7FA526 #263FA5 #8C26A5
monochromatic
#32420F #59731B #7FA526 #A3D137 #BADC69

Accessibility & contrast

On white

2.87
#7FA526 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#7FA526 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7FA526
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7FA526#FFFFFF#000000##000000
##7FA5261.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A05
Deuteranopia (green-blind)
#A99832
Tritanopia (blue-blind)
#859D8D
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #7fa526;
/* rgb */ color: rgb(127, 165, 38);
/* oklch */ color: oklch(67.0% 0.155 125.4);
Tailwind
colors: {
  custom: {
    50: '#a8bf6b',
    500: '#7fa526',
    950: '#000000',
  },
}
SCSS
$custom: #7fa526;
$custom-light: #a8bf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7fa526",
  "rgb": {
    "r": 127,
    "g": 165,
    "b": 38
  },
  "hsl": {
    "h": 77.953,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.67039,
    "c": 0.15472,
    "h": 125.4
  },
  "luminance": 0.31562
}

Semantic roles & 50–950 ramp

primary
#7FA526
secondary
#8064C3
accent
#42E673
background
#FAFBF6
surface
#F4F7EC
border
#CED0C7
text
#101207
muted
#7F817A

Preview Lab

Preview with #7FA526

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

Preview Lab → · Contrast checker → · Palette generator →

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