#7F9823#7F9823

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

Color values

HEX#7F9823
RGBrgb(127, 152, 35)
HSLhsl(73, 63%, 37%)
HSVhsv(73, 77%, 60%)
CMYKcmyk(16.4%, 0%, 77%, 40.4%)
CIE-LABlab(59.06, -24.73, 54.37)
CIE-LCHlch(59.06, 59.73, 114.45°)
OKLaboklab(63.86% -0.073 0.12)
OKLCHoklch(63.86% 0.14 121.3)
XYZxyz(20.2843, 27.0899, 5.7500)
Luminance0.2709 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9823 #3C2398
analogous
#987723 #7F9823 #449823
triadic
#7F9823 #237F98 #98237F
tetradic
#7F9823 #239877 #3C2398 #982344
square
#7F9823 #239877 #3C2398 #982344
split-complementary
#7F9823 #234498 #772398
monochromatic
#2C350C #556618 #7F9823 #A9CA2E #BFD95C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F9823#FFFFFF#000000##000000
##7F98231.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)
#A28F06
Deuteranopia (green-blind)
#9F8E2E
Tritanopia (blue-blind)
#869082
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #7f9823;
/* rgb */ color: rgb(127, 152, 35);
/* oklch */ color: oklch(63.9% 0.140 121.3);
Tailwind
colors: {
  custom: {
    50: '#a7b668',
    500: '#7f9823',
    950: '#000000',
  },
}
SCSS
$custom: #7f9823;
$custom-light: #a7b668;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9823",
  "rgb": {
    "r": 127,
    "g": 152,
    "b": 35
  },
  "hsl": {
    "h": 72.821,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.63862,
    "c": 0.14045,
    "h": 121.3
  },
  "luminance": 0.2709
}

Semantic roles & 50–950 ramp

primary
#7F9823
secondary
#6E59BE
accent
#42E665
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101107
muted
#7F807A

Preview Lab

Preview with #7F9823

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

Preview Lab → · Contrast checker → · Palette generator →

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