#4D6817#4D6817

#4D6817 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.9% C 0.110 H 126.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#4D6817
RGBrgb(77, 104, 23)
HSLhsl(80, 64%, 25%)
HSVhsv(80, 78%, 41%)
CMYKcmyk(26%, 0%, 77.9%, 59.2%)
CIE-LABlab(40.48, -22.81, 39.72)
CIE-LCHlch(40.48, 45.80, 119.86°)
OKLaboklab(47.91% -0.0657 0.0885)
OKLCHoklch(47.91% 0.11 126.6)
XYZxyz(8.1656, 11.5401, 2.6077)
Luminance0.1154 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D6817 #321768
analogous
#685B17 #4D6817 #246817
triadic
#4D6817 #174D68 #68174D
tetradic
#4D6817 #17685B #321768 #681724
square
#4D6817 #17685B #321768 #681724
split-complementary
#4D6817 #172468 #5B1768
monochromatic
#131906 #28360C #4D6817 #729A22 #97CC2D

Accessibility & contrast

On white

6.35
#4D6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4D6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D6817
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D6817#FFFFFF#000000##FFFFFF
##4D68171.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6007
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#506358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4d6817;
/* rgb */ color: rgb(77, 104, 23);
/* oklch */ color: oklch(47.9% 0.110 126.6);
Tailwind
colors: {
  custom: {
    50: '#82935b',
    500: '#4d6817',
    950: '#000000',
  },
}
SCSS
$custom: #4d6817;
$custom-light: #82935b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d6817",
  "rgb": {
    "r": 77,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 80,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47913,
    "c": 0.11021,
    "h": 126.6
  },
  "luminance": 0.1154
}

Semantic roles & 50–950 ramp

primary
#4D6817
secondary
#5D3D9E
accent
#41E778
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0B0D04
muted
#7C7E79

Preview Lab

Preview with #4D6817

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

Preview Lab → · Contrast checker → · Palette generator →

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