#4D7218#4D7218

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

Color values

HEX#4D7218
RGBrgb(77, 114, 24)
HSLhsl(85, 65%, 27%)
HSVhsv(85, 79%, 45%)
CMYKcmyk(32.5%, 0%, 78.9%, 55.3%)
CIE-LABlab(43.77, -27.69, 42.53)
CIE-LCHlch(43.77, 50.75, 123.07°)
OKLaboklab(50.59% -0.0789 0.0946)
OKLCHoklch(50.59% 0.123 129.8)
XYZxyz(9.2427, 13.6781, 3.0171)
Luminance0.1368 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7218 #3D1872
analogous
#726A18 #4D7218 #207218
triadic
#4D7218 #184D72 #72184D
tetradic
#4D7218 #18726A #3D1872 #721820
square
#4D7218 #18726A #3D1872 #721820
split-complementary
#4D7218 #182072 #6A1872
monochromatic
#111905 #2B3F0D #4D7218 #6FA523 #91D431

Accessibility & contrast

On white

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

On black

3.74
#4D7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4D7218#FFFFFF#000000##FFFFFF
##4D72181.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786904
Deuteranopia (green-blind)
#736721
Tritanopia (blue-blind)
#4F6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4d7218;
/* rgb */ color: rgb(77, 114, 24);
/* oklch */ color: oklch(50.6% 0.123 129.8);
Tailwind
colors: {
  custom: {
    50: '#829b5c',
    500: '#4d7218',
    950: '#000000',
  },
}
SCSS
$custom: #4d7218;
$custom-light: #829b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7218",
  "rgb": {
    "r": 77,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 84.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.5059,
    "c": 0.12315,
    "h": 129.8
  },
  "luminance": 0.13678
}

Semantic roles & 50–950 ramp

primary
#4D7218
secondary
#6A3EA7
accent
#40E885
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4D7218

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

Preview Lab → · Contrast checker → · Palette generator →

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