#4B871F#4B871F

#4B871F is a mid, vivid yellow-green. Relative luminance 0.189; OKLCH L 56.2% C 0.148 H 135.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#4B871F
RGBrgb(75, 135, 31)
HSLhsl(95, 63%, 33%)
HSVhsv(95, 77%, 53%)
CMYKcmyk(44.4%, 0%, 77%, 47.1%)
CIE-LABlab(50.60, -37.53, 46.58)
CIE-LCHlch(50.60, 59.82, 128.86°)
OKLaboklab(56.16% -0.1049 0.1042)
OKLCHoklch(56.16% 0.148 135.2)
XYZxyz(11.8127, 18.9221, 4.3259)
Luminance0.1892 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B871F #5B1F87
analogous
#7F871F #4B871F #1F8727
triadic
#4B871F #1F4B87 #871F4B
tetradic
#4B871F #1F7F87 #5B1F87 #87271F
square
#4B871F #1F7F87 #5B1F87 #87271F
split-complementary
#4B871F #271F87 #871F7F
monochromatic
#142308 #2F5514 #4B871F #67B92A #86D64B

Accessibility & contrast

On white

4.39
#4B871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#4B871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4B871F
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B871F#FFFFFF#000000##000000
##4B871F1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C08
Deuteranopia (green-blind)
#84772A
Tritanopia (blue-blind)
#498273
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #4b871f;
/* rgb */ color: rgb(75, 135, 31);
/* oklch */ color: oklch(56.2% 0.148 135.2);
Tailwind
colors: {
  custom: {
    50: '#83aa63',
    500: '#4b871f',
    950: '#000000',
  },
}
SCSS
$custom: #4b871f;
$custom-light: #83aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#4b871f",
  "rgb": {
    "r": 75,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 94.615,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.14782,
    "h": 135.2
  },
  "luminance": 0.18923
}

Semantic roles & 50–950 ramp

primary
#4B871F
secondary
#894AB8
accent
#42E6A0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1006
muted
#7C7F7A

Preview Lab

Preview with #4B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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