#4D8915#4D8915

#4D8915 is a mid, vivid yellow-green. Relative luminance 0.195; OKLCH L 56.7% C 0.154 H 134.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#4D8915
RGBrgb(77, 137, 21)
HSLhsl(91, 73%, 31%)
HSVhsv(91, 85%, 54%)
CMYKcmyk(43.8%, 0%, 84.7%, 46.3%)
CIE-LABlab(51.29, -38.24, 50.45)
CIE-LCHlch(51.29, 63.30, 127.16°)
OKLaboklab(56.74% -0.1075 0.1107)
OKLCHoklch(56.74% 0.154 134.2)
XYZxyz(12.1414, 19.5226, 3.8378)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D8915 #511589
analogous
#878915 #4D8915 #158917
triadic
#4D8915 #154D89 #89154D
tetradic
#4D8915 #158789 #511589 #891715
square
#4D8915 #158789 #511589 #891715
split-complementary
#4D8915 #171589 #891587
monochromatic
#111F05 #2F540D #4D8915 #6BBE1D #89E038

Accessibility & contrast

On white

4.28
#4D8915 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#4D8915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #4D8915
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D8915#FFFFFF#000000##000000
##4D89151.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#877823
Tritanopia (blue-blind)
#4C8374
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #4d8915;
/* rgb */ color: rgb(77, 137, 21);
/* oklch */ color: oklch(56.7% 0.154 134.2);
Tailwind
colors: {
  custom: {
    50: '#85ac5f',
    500: '#4d8915',
    950: '#000000',
  },
}
SCSS
$custom: #4d8915;
$custom-light: #85ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d8915",
  "rgb": {
    "r": 77,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 91.034,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56738,
    "c": 0.15436,
    "h": 134.2
  },
  "luminance": 0.19523
}

Semantic roles & 50–950 ramp

primary
#4D8915
secondary
#7F3DBD
accent
#38F097
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #4D8915

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

Preview Lab → · Contrast checker → · Palette generator →

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