#4F7B28#4F7B28

#4F7B28 is a mid, vivid yellow-green. Relative luminance 0.160; OKLCH L 53.3% C 0.123 H 133.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#4F7B28
RGBrgb(79, 123, 40)
HSLhsl(92, 51%, 32%)
HSVhsv(92, 67%, 48%)
CMYKcmyk(35.8%, 0%, 67.5%, 51.8%)
CIE-LABlab(46.95, -29.98, 39.24)
CIE-LCHlch(46.95, 49.38, 127.38°)
OKLaboklab(53.25% -0.0839 0.0901)
OKLCHoklch(53.25% 0.123 133)
XYZxyz(10.6902, 15.9810, 4.5284)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F7B28 #54287B
analogous
#797B28 #4F7B28 #287B2B
triadic
#4F7B28 #284F7B #7B284F
tetradic
#4F7B28 #28797B #54287B #7B2B28
square
#4F7B28 #28797B #54287B #7B2B28
split-complementary
#4F7B28 #2B287B #7B2879
monochromatic
#141F0A #314D19 #4F7B28 #6DA937 #8BC856

Accessibility & contrast

On white

5.00
#4F7B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#4F7B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F7B28
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F7B28#FFFFFF#000000##FFFFFF
##4F7B281.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80721D
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#4F766A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #4f7b28;
/* rgb */ color: rgb(79, 123, 40);
/* oklch */ color: oklch(53.3% 0.123 133.0);
Tailwind
colors: {
  custom: {
    50: '#84a166',
    500: '#4f7b28',
    950: '#000000',
  },
}
SCSS
$custom: #4f7b28;
$custom-light: #84a166;
$custom-dark: #000000;
JSON
{
  "hex": "#4f7b28",
  "rgb": {
    "r": 79,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 91.807,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53252,
    "c": 0.1231,
    "h": 133
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#4F7B28
secondary
#8252AD
accent
#4DDA98
background
#F8F9F6
surface
#EFF2EB
border
#CACCC6
text
#0B0F06
muted
#7C7E7A

Preview Lab

Preview with #4F7B28

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

Preview Lab → · Contrast checker → · Palette generator →

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