#40802D#40802D

#40802D is a mid, vivid green. Relative luminance 0.167; OKLCH L 53.8% C 0.134 H 139.2°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#40802D
RGBrgb(64, 128, 45)
HSLhsl(106, 48%, 34%)
HSVhsv(106, 65%, 50%)
CMYKcmyk(50%, 0%, 64.8%, 49.8%)
CIE-LABlab(47.90, -37.01, 37.77)
CIE-LCHlch(47.90, 52.88, 134.41°)
OKLaboklab(53.85% -0.1017 0.0878)
OKLCHoklch(53.85% 0.134 139.2)
XYZxyz(10.3068, 16.7171, 5.1657)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40802D #6D2D80
analogous
#6A802D #40802D #2D8044
triadic
#40802D #2D4080 #802D40
tetradic
#40802D #2D6A80 #6D2D80 #80442D
square
#40802D #2D6A80 #6D2D80 #80442D
split-complementary
#40802D #442D80 #802D6A
monochromatic
#13250D #29531D #40802D #57AD3D #78C760

Accessibility & contrast

On white

4.83
#40802D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#40802D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40802D
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40802D#FFFFFF#000000##FFFFFF
##40802D1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847523
Deuteranopia (green-blind)
#7B7034
Tritanopia (blue-blind)
#3B7C6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40802d;
/* rgb */ color: rgb(64, 128, 45);
/* oklch */ color: oklch(53.8% 0.134 139.2);
Tailwind
colors: {
  custom: {
    50: '#7ba56a',
    500: '#40802d',
    950: '#000000',
  },
}
SCSS
$custom: #40802d;
$custom-light: #7ba56a;
$custom-dark: #000000;
JSON
{
  "hex": "#40802d",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 106.265,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.53845,
    "c": 0.13432,
    "h": 139.2
  },
  "luminance": 0.16718
}

Semantic roles & 50–950 ramp

primary
#40802D
secondary
#9B5BAE
accent
#50D8B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #40802D

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

Preview Lab → · Contrast checker → · Palette generator →

#40802D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva