#4D7915#4D7915

#4D7915 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.4% C 0.134 H 131.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#4D7915
RGBrgb(77, 121, 21)
HSLhsl(86, 70%, 28%)
HSVhsv(86, 83%, 47%)
CMYKcmyk(36.4%, 0%, 82.6%, 52.5%)
CIE-LABlab(46.05, -31.16, 45.68)
CIE-LCHlch(46.05, 55.30, 124.29°)
OKLaboklab(52.45% -0.0885 0.1007)
OKLCHoklch(52.45% 0.134 131.3)
XYZxyz(10.0332, 15.3063, 3.1351)
Luminance0.1531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7915 #411579
analogous
#797315 #4D7915 #1B7915
triadic
#4D7915 #154D79 #79154D
tetradic
#4D7915 #157973 #411579 #79151B
square
#4D7915 #157973 #411579 #79151B
split-complementary
#4D7915 #151B79 #731579
monochromatic
#111A05 #2C450C #4D7915 #6EAD1E #8FDB2E

Accessibility & contrast

On white

5.17
#4D7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4D7915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7915
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7915#FFFFFF#000000##FFFFFF
##4D79151.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#4E7467
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4d7915;
/* rgb */ color: rgb(77, 121, 21);
/* oklch */ color: oklch(52.4% 0.134 131.3);
Tailwind
colors: {
  custom: {
    50: '#83a05c',
    500: '#4d7915',
    950: '#000000',
  },
}
SCSS
$custom: #4d7915;
$custom-light: #83a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7915",
  "rgb": {
    "r": 77,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 86.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52447,
    "c": 0.13405,
    "h": 131.3
  },
  "luminance": 0.15307
}

Semantic roles & 50–950 ramp

primary
#4D7915
secondary
#6E3BAF
accent
#3BED89
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7915

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

Preview Lab → · Contrast checker → · Palette generator →

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