#4B7F1F#4B7F1F

#4B7F1F is a mid, vivid yellow-green. Relative luminance 0.168; OKLCH L 54.0% C 0.137 H 134.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#4B7F1F
RGBrgb(75, 127, 31)
HSLhsl(93, 61%, 31%)
HSVhsv(93, 76%, 50%)
CMYKcmyk(40.9%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.97, -34.03, 43.99)
CIE-LCHlch(47.97, 55.62, 127.73°)
OKLaboklab(54.01% -0.0954 0.0988)
OKLCHoklch(54.01% 0.137 134)
XYZxyz(10.7381, 16.7730, 3.9678)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7F1F #531F7F
analogous
#7B7F1F #4B7F1F #1F7F23
triadic
#4B7F1F #1F4B7F #7F1F4B
tetradic
#4B7F1F #1F7B7F #531F7F #7F231F
square
#4B7F1F #1F7B7F #531F7F #7F231F
split-complementary
#4B7F1F #231F7F #7F1F7B
monochromatic
#111D07 #2E4E13 #4B7F1F #68B02B #86D246

Accessibility & contrast

On white

4.82
#4B7F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#4B7F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7F1F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7F1F#FFFFFF#000000##FFFFFF
##4B7F1F1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84750D
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#4B7A6C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #4b7f1f;
/* rgb */ color: rgb(75, 127, 31);
/* oklch */ color: oklch(54.0% 0.137 134.0);
Tailwind
colors: {
  custom: {
    50: '#82a462',
    500: '#4b7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #4b7f1f;
$custom-light: #82a462;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7f1f",
  "rgb": {
    "r": 75,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 92.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54008,
    "c": 0.13733,
    "h": 134
  },
  "luminance": 0.16774
}

Semantic roles & 50–950 ramp

primary
#4B7F1F
secondary
#8148B2
accent
#44E49B
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B0F05
muted
#7C7F7A

Preview Lab

Preview with #4B7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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