#408227#408227

#408227 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.3% C 0.142 H 138.4°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#408227
RGBrgb(64, 130, 39)
HSLhsl(104, 54%, 33%)
HSVhsv(104, 70%, 51%)
CMYKcmyk(50.8%, 0%, 70%, 49%)
CIE-LABlab(48.51, -38.44, 41.13)
CIE-LCHlch(48.51, 56.30, 133.06°)
OKLaboklab(54.33% -0.106 0.0941)
OKLCHoklch(54.33% 0.142 138.4)
XYZxyz(10.4628, 17.2010, 4.6879)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408227 #692782
analogous
#6D8227 #408227 #27823B
triadic
#408227 #274082 #822740
tetradic
#408227 #276D82 #692782 #823B27
square
#408227 #276D82 #692782 #823B27
split-complementary
#408227 #3B2782 #82276D
monochromatic
#12240B #295319 #408227 #57B135 #77CD57

Accessibility & contrast

On white

4.73
#408227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#408227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408227
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408227#FFFFFF#000000##FFFFFF
##4082271.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771A
Deuteranopia (green-blind)
#7D712F
Tritanopia (blue-blind)
#3B7D70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #408227;
/* rgb */ color: rgb(64, 130, 39);
/* oklch */ color: oklch(54.3% 0.142 138.4);
Tailwind
colors: {
  custom: {
    50: '#7ba766',
    500: '#408227',
    950: '#000000',
  },
}
SCSS
$custom: #408227;
$custom-light: #7ba766;
$custom-dark: #000000;
JSON
{
  "hex": "#408227",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 103.516,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.14175,
    "h": 138.4
  },
  "luminance": 0.17202
}

Semantic roles & 50–950 ramp

primary
#408227
secondary
#9853B1
accent
#4BDDB5
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #408227

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

Preview Lab → · Contrast checker → · Palette generator →

#408227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva