#4D7215#4D7215

#4D7215 is a mid, vivid yellow-green. Relative luminance 0.137; OKLCH L 50.6% C 0.125 H 129.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#4D7215
RGBrgb(77, 114, 21)
HSLhsl(84, 69%, 26%)
HSVhsv(84, 82%, 45%)
CMYKcmyk(32.5%, 0%, 81.6%, 55.3%)
CIE-LABlab(43.75, -27.86, 43.55)
CIE-LCHlch(43.75, 51.70, 122.61°)
OKLaboklab(50.57% -0.0796 0.0962)
OKLCHoklch(50.57% 0.125 129.6)
XYZxyz(9.2132, 13.6663, 2.8618)
Luminance0.1367 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7215 #3A1572
analogous
#726915 #4D7215 #1F7215
triadic
#4D7215 #154D72 #72154D
tetradic
#4D7215 #157269 #3A1572 #72151F
square
#4D7215 #157269 #3A1572 #72151F
split-complementary
#4D7215 #151F72 #691572
monochromatic
#111A05 #2A3E0B #4D7215 #70A61F #92D82A

Accessibility & contrast

On white

5.62
#4D7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#4D7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7215
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7215#FFFFFF#000000##FFFFFF
##4D72151.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#73671F
Tritanopia (blue-blind)
#4F6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d7215;
/* rgb */ color: rgb(77, 114, 21);
/* oklch */ color: oklch(50.6% 0.125 129.6);
Tailwind
colors: {
  custom: {
    50: '#839a5b',
    500: '#4d7215',
    950: '#000000',
  },
}
SCSS
$custom: #4d7215;
$custom-light: #839a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7215",
  "rgb": {
    "r": 77,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 83.871,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50571,
    "c": 0.12485,
    "h": 129.6
  },
  "luminance": 0.13667
}

Semantic roles & 50–950 ramp

primary
#4D7215
secondary
#663BA8
accent
#3CEC82
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7215

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

Preview Lab → · Contrast checker → · Palette generator →

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