#4F7017#4F7017

#4F7017 is a mid, moderate yellow-green. Relative luminance 0.133; OKLCH L 50.2% C 0.120 H 128.3°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#4F7017
RGBrgb(79, 112, 23)
HSLhsl(82, 66%, 26%)
HSVhsv(82, 79%, 44%)
CMYKcmyk(29.5%, 0%, 79.5%, 56.1%)
CIE-LABlab(43.23, -25.95, 42.42)
CIE-LCHlch(43.23, 49.72, 121.46°)
OKLaboklab(50.18% -0.0744 0.0941)
OKLCHoklch(50.18% 0.12 128.3)
XYZxyz(9.1733, 13.3122, 2.8967)
Luminance0.1331 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7017 #381770
analogous
#706517 #4F7017 #237017
triadic
#4F7017 #174F70 #70174F
tetradic
#4F7017 #177065 #381770 #701723
square
#4F7017 #177065 #381770 #701723
split-complementary
#4F7017 #172370 #651770
monochromatic
#121905 #2B3D0D #4F7017 #73A321 #96D42D

Accessibility & contrast

On white

5.73
#4F7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#4F7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7017
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7017#FFFFFF#000000##FFFFFF
##4F70171.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766803
Deuteranopia (green-blind)
#716520
Tritanopia (blue-blind)
#526B5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4f7017;
/* rgb */ color: rgb(79, 112, 23);
/* oklch */ color: oklch(50.2% 0.120 128.3);
Tailwind
colors: {
  custom: {
    50: '#84995c',
    500: '#4f7017',
    950: '#000000',
  },
}
SCSS
$custom: #4f7017;
$custom-light: #84995c;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7017",
  "rgb": {
    "r": 79,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 82.247,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50184,
    "c": 0.11995,
    "h": 128.3
  },
  "luminance": 0.13312
}

Semantic roles & 50–950 ramp

primary
#4F7017
secondary
#643DA6
accent
#3FE97E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4F7017

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

Preview Lab → · Contrast checker → · Palette generator →

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