#408231#408231

#408231 is a mid, vivid green. Relative luminance 0.173; OKLCH L 54.4% C 0.134 H 140.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#408231
RGBrgb(64, 130, 49)
HSLhsl(109, 45%, 35%)
HSVhsv(109, 62%, 51%)
CMYKcmyk(50.8%, 0%, 62.3%, 49%)
CIE-LABlab(48.61, -37.42, 36.67)
CIE-LCHlch(48.61, 52.39, 135.58°)
OKLaboklab(54.44% -0.1025 0.0858)
OKLCHoklch(54.44% 0.134 140.1)
XYZxyz(10.6509, 17.2762, 5.6785)
Luminance0.1728 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408231 #733182
analogous
#688231 #408231 #31824B
triadic
#408231 #314082 #823140
tetradic
#408231 #316882 #733182 #824B31
square
#408231 #316882 #733182 #824B31
split-complementary
#408231 #4B3182 #823168
monochromatic
#14290F #2A5620 #408231 #56AE42 #79C668

Accessibility & contrast

On white

4.71
#408231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#408231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408231
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408231#FFFFFF#000000##FFFFFF
##4082311.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867728
Deuteranopia (green-blind)
#7D7137
Tritanopia (blue-blind)
#3A7E71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #408231;
/* rgb */ color: rgb(64, 130, 49);
/* oklch */ color: oklch(54.4% 0.134 140.1);
Tailwind
colors: {
  custom: {
    50: '#7ba76c',
    500: '#408231',
    950: '#000000',
  },
}
SCSS
$custom: #408231;
$custom-light: #7ba76c;
$custom-dark: #000000;
JSON
{
  "hex": "#408231",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 108.889,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.13371,
    "h": 140.1
  },
  "luminance": 0.17277
}

Semantic roles & 50–950 ramp

primary
#408231
secondary
#9F62AD
accent
#53D5BD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F07
muted
#7C7F7A

Preview Lab

Preview with #408231

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

Preview Lab → · Contrast checker → · Palette generator →

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