#4D7818#4D7818

#4D7818 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.2% C 0.131 H 131.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#4D7818
RGBrgb(77, 120, 24)
HSLhsl(87, 67%, 28%)
HSVhsv(87, 80%, 47%)
CMYKcmyk(35.8%, 0%, 80%, 52.9%)
CIE-LABlab(45.74, -30.53, 44.40)
CIE-LCHlch(45.74, 53.89, 124.51°)
OKLaboklab(52.2% -0.0866 0.0985)
OKLCHoklch(52.2% 0.131 131.3)
XYZxyz(9.9418, 15.0763, 3.2502)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D7818 #431878
analogous
#787318 #4D7818 #1D7818
triadic
#4D7818 #184D78 #78184D
tetradic
#4D7818 #187873 #431878 #78181D
square
#4D7818 #187873 #431878 #78181D
split-complementary
#4D7818 #181D78 #731878
monochromatic
#101A05 #2C450E #4D7818 #6EAB22 #8ED634

Accessibility & contrast

On white

5.23
#4D7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#4D7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D7818
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D7818#FFFFFF#000000##FFFFFF
##4D78181.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E01
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#4E7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4d7818;
/* rgb */ color: rgb(77, 120, 24);
/* oklch */ color: oklch(52.2% 0.131 131.3);
Tailwind
colors: {
  custom: {
    50: '#839f5d',
    500: '#4d7818',
    950: '#000000',
  },
}
SCSS
$custom: #4d7818;
$custom-light: #839f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d7818",
  "rgb": {
    "r": 77,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 86.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52197,
    "c": 0.13115,
    "h": 131.3
  },
  "luminance": 0.15077
}

Semantic roles & 50–950 ramp

primary
#4D7818
secondary
#703FAD
accent
#3EEA8B
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E05
muted
#7C7E79

Preview Lab

Preview with #4D7818

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

Preview Lab → · Contrast checker → · Palette generator →

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