#4F8A2A#4F8A2A

#4F8A2A is a mid, vivid yellow-green. Relative luminance 0.200; OKLCH L 57.3% C 0.142 H 135.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4F8A2A
RGBrgb(79, 138, 42)
HSLhsl(97, 53%, 35%)
HSVhsv(97, 70%, 54%)
CMYKcmyk(42.8%, 0%, 69.6%, 45.9%)
CIE-LABlab(51.84, -36.61, 43.58)
CIE-LCHlch(51.84, 56.91, 130.03°)
OKLaboklab(57.26% -0.1018 0.0995)
OKLCHoklch(57.26% 0.142 135.7)
XYZxyz(12.7305, 20.0057, 5.3807)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8A2A #652A8A
analogous
#7F8A2A #4F8A2A #2A8A35
triadic
#4F8A2A #2A4F8A #8A2A4F
tetradic
#4F8A2A #2A7F8A #652A8A #8A352A
square
#4F8A2A #2A7F8A #652A8A #8A352A
split-complementary
#4F8A2A #352A8A #8A2A7F
monochromatic
#192C0D #345B1C #4F8A2A #6AB938 #8BCF60

Accessibility & contrast

On white

4.20
#4F8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#4F8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8A2A
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8A2A#FFFFFF#000000##000000
##4F8A2A1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1C
Deuteranopia (green-blind)
#877A32
Tritanopia (blue-blind)
#4D8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4f8a2a;
/* rgb */ color: rgb(79, 138, 42);
/* oklch */ color: oklch(57.3% 0.142 135.7);
Tailwind
colors: {
  custom: {
    50: '#85ac69',
    500: '#4f8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #4f8a2a;
$custom-light: #85ac69;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8a2a",
  "rgb": {
    "r": 79,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 96.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57256,
    "c": 0.14234,
    "h": 135.7
  },
  "luminance": 0.20006
}

Semantic roles & 50–950 ramp

primary
#4F8A2A
secondary
#925BB4
accent
#4BDDA5
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0B1007
muted
#7C7F7A

Preview Lab

Preview with #4F8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

#4F8A2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva