#4F8B1F#4F8B1F

#4F8B1F is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.4% C 0.151 H 134.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#4F8B1F
RGBrgb(79, 139, 31)
HSLhsl(93, 64%, 33%)
HSVhsv(93, 78%, 55%)
CMYKcmyk(43.2%, 0%, 77.7%, 45.5%)
CIE-LABlab(52.09, -37.85, 48.09)
CIE-LCHlch(52.09, 61.20, 128.20°)
OKLaboklab(57.43% -0.106 0.1073)
OKLCHoklch(57.43% 0.151 134.7)
XYZxyz(12.7041, 20.2257, 4.5306)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F8B1F #5B1F8B
analogous
#858B1F #4F8B1F #1F8B25
triadic
#4F8B1F #1F4F8B #8B1F4F
tetradic
#4F8B1F #1F858B #5B1F8B #8B251F
square
#4F8B1F #1F858B #5B1F8B #8B251F
split-complementary
#4F8B1F #251F8B #8B1F85
monochromatic
#162709 #335914 #4F8B1F #6BBD2A #8BD74D

Accessibility & contrast

On white

4.16
#4F8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#4F8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4F8B1F
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F8B1F#FFFFFF#000000##000000
##4F8B1F1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F06
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#4E8577
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #4f8b1f;
/* rgb */ color: rgb(79, 139, 31);
/* oklch */ color: oklch(57.4% 0.151 134.7);
Tailwind
colors: {
  custom: {
    50: '#86ad63',
    500: '#4f8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #4f8b1f;
$custom-light: #86ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#4f8b1f",
  "rgb": {
    "r": 79,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 93.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57434,
    "c": 0.15083,
    "h": 134.7
  },
  "luminance": 0.20226
}

Semantic roles & 50–950 ramp

primary
#4F8B1F
secondary
#894CBA
accent
#41E79D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #4F8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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