#7F9828#7F9828

#7F9828 is a light, vivid yellow-green. Relative luminance 0.271; OKLCH L 63.9% C 0.137 H 121.5°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7F9828
RGBrgb(127, 152, 40)
HSLhsl(73, 58%, 38%)
HSVhsv(73, 74%, 60%)
CMYKcmyk(16.4%, 0%, 73.7%, 40.4%)
CIE-LABlab(59.09, -24.46, 52.64)
CIE-LCHlch(59.09, 58.05, 114.92°)
OKLaboklab(63.9% -0.0718 0.1172)
OKLCHoklch(63.9% 0.137 121.5)
XYZxyz(20.3639, 27.1217, 6.1693)
Luminance0.2712 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9828 #412898
analogous
#987928 #7F9828 #479828
triadic
#7F9828 #287F98 #98287F
tetradic
#7F9828 #289879 #412898 #982847
square
#7F9828 #289879 #412898 #982847
split-complementary
#7F9828 #284798 #792898
monochromatic
#2E370F #57681B #7F9828 #A7C835 #BDD664

Accessibility & contrast

On white

3.27
#7F9828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#7F9828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9828
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9828#FFFFFF#000000##000000
##7F98281.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18F13
Deuteranopia (green-blind)
#9E8E32
Tritanopia (blue-blind)
#869082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7f9828;
/* rgb */ color: rgb(127, 152, 40);
/* oklch */ color: oklch(63.9% 0.137 121.5);
Tailwind
colors: {
  custom: {
    50: '#a7b66a',
    500: '#7f9828',
    950: '#000000',
  },
}
SCSS
$custom: #7f9828;
$custom-light: #a7b66a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9828",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 73.393,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63895,
    "c": 0.13747,
    "h": 121.5
  },
  "luminance": 0.27122
}

Semantic roles & 50–950 ramp

primary
#7F9828
secondary
#7460BC
accent
#46E269
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101107
muted
#7F807A

Preview Lab

Preview with #7F9828

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

Preview Lab → · Contrast checker → · Palette generator →

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