#4F7B17#4F7B17

#4F7B17 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.1% C 0.135 H 131.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#4F7B17
RGBrgb(79, 123, 23)
HSLhsl(86, 68%, 29%)
HSVhsv(86, 81%, 48%)
CMYKcmyk(35.8%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.83, -31.19, 45.81)
CIE-LCHlch(46.83, 55.42, 124.25°)
OKLaboklab(53.12% -0.0886 0.1012)
OKLCHoklch(53.12% 0.135 131.2)
XYZxyz(10.4620, 15.8896, 3.3262)
Luminance0.1589 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B17 #43177B
analogous
#7B7517 #4F7B17 #1D7B17
triadic
#4F7B17 #174F7B #7B174F
tetradic
#4F7B17 #177B75 #43177B #7B171D
square
#4F7B17 #177B75 #43177B #7B171D
split-complementary
#4F7B17 #171D7B #75177B
monochromatic
#111A05 #2E470D #4F7B17 #70AF21 #90D933

Accessibility & contrast

On white

5.03
#4F7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#4F7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7B17
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7B17#FFFFFF#000000##FFFFFF
##4F7B171.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#517569
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4f7b17;
/* rgb */ color: rgb(79, 123, 23);
/* oklch */ color: oklch(53.1% 0.135 131.2);
Tailwind
colors: {
  custom: {
    50: '#85a15d',
    500: '#4f7b17',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b17;
$custom-light: #85a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b17",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 86.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53116,
    "c": 0.13451,
    "h": 131.2
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#4F7B17
secondary
#703EB0
accent
#3CEB89
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4F7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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