#4E6228#4E6228

#4E6228 is a mid, moderate yellow-green. Relative luminance 0.105; OKLCH L 46.6% C 0.087 H 125.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#4E6228
RGBrgb(78, 98, 40)
HSLhsl(81, 42%, 27%)
HSVhsv(81, 59%, 38%)
CMYKcmyk(20.4%, 0%, 59.2%, 61.6%)
CIE-LABlab(38.74, -17.81, 30.07)
CIE-LCHlch(38.74, 34.95, 120.63°)
OKLaboklab(46.58% -0.0503 0.0706)
OKLCHoklch(46.58% 0.087 125.5)
XYZxyz(7.8926, 10.5082, 3.6195)
Luminance0.1051 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E6228 #3C2862
analogous
#625928 #4E6228 #316228
triadic
#4E6228 #284E62 #62284E
tetradic
#4E6228 #286259 #3C2862 #622831
square
#4E6228 #286259 #3C2862 #622831
split-complementary
#4E6228 #283162 #592862
monochromatic
#111609 #2B3716 #4E6228 #718D3A #92B74E

Accessibility & contrast

On white

6.77
#4E6228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4E6228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E6228
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E6228#FFFFFF#000000##FFFFFF
##4E62281.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675C22
Deuteranopia (green-blind)
#645B2C
Tritanopia (blue-blind)
#515E55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4e6228;
/* rgb */ color: rgb(78, 98, 40);
/* oklch */ color: oklch(46.6% 0.087 125.5);
Tailwind
colors: {
  custom: {
    50: '#818e64',
    500: '#4e6228',
    950: '#000000',
  },
}
SCSS
$custom: #4e6228;
$custom-light: #818e64;
$custom-dark: #000000;
JSON
{
  "hex": "#4e6228",
  "rgb": {
    "r": 78,
    "g": 98,
    "b": 40
  },
  "hsl": {
    "h": 80.69,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.46576,
    "c": 0.08665,
    "h": 125.5
  },
  "luminance": 0.10508
}

Semantic roles & 50–950 ramp

primary
#4E6228
secondary
#685195
accent
#56D281
background
#F8F8F6
surface
#EFF0EB
border
#CACBC6
text
#0A0C05
muted
#7C7D7A

Preview Lab

Preview with #4E6228

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

Preview Lab → · Contrast checker → · Palette generator →

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