#7F9728#7F9728

#7F9728 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.7% C 0.136 H 121.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7F9728
RGBrgb(127, 151, 40)
HSLhsl(73, 58%, 37%)
HSVhsv(73, 74%, 59%)
CMYKcmyk(15.9%, 0%, 73.5%, 40.8%)
CIE-LABlab(58.79, -23.96, 52.35)
CIE-LCHlch(58.79, 57.58, 114.60°)
OKLaboklab(63.65% -0.0705 0.1166)
OKLCHoklch(63.65% 0.136 121.2)
XYZxyz(20.2023, 26.7985, 6.1154)
Luminance0.2680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9728 #402897
analogous
#977828 #7F9728 #489728
triadic
#7F9728 #287F97 #97287F
tetradic
#7F9728 #289778 #402897 #972848
square
#7F9728 #289778 #402897 #972848
split-complementary
#7F9728 #284897 #782897
monochromatic
#2E360E #56671B #7F9728 #A8C735 #BDD664

Accessibility & contrast

On white

3.30
#7F9728 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#7F9728 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9728
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9728#FFFFFF#000000##000000
##7F97281.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08E13
Deuteranopia (green-blind)
#9D8E32
Tritanopia (blue-blind)
#868F82
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7f9728;
/* rgb */ color: rgb(127, 151, 40);
/* oklch */ color: oklch(63.7% 0.136 121.2);
Tailwind
colors: {
  custom: {
    50: '#a7b56a',
    500: '#7f9728',
    950: '#000000',
  },
}
SCSS
$custom: #7f9728;
$custom-light: #a7b56a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9728",
  "rgb": {
    "r": 127,
    "g": 151,
    "b": 40
  },
  "hsl": {
    "h": 72.973,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.63654,
    "c": 0.13624,
    "h": 121.2
  },
  "luminance": 0.26798
}

Semantic roles & 50–950 ramp

primary
#7F9728
secondary
#735FBC
accent
#46E168
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101107
muted
#7F807A

Preview Lab

Preview with #7F9728

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

Preview Lab → · Contrast checker → · Palette generator →

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