#40802B#40802B

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

Color values

HEX#40802B
RGBrgb(64, 128, 43)
HSLhsl(105, 50%, 34%)
HSVhsv(105, 66%, 50%)
CMYKcmyk(50%, 0%, 66.4%, 49.8%)
CIE-LABlab(47.88, -37.21, 38.68)
CIE-LCHlch(47.88, 53.67, 133.90°)
OKLaboklab(53.82% -0.1024 0.0894)
OKLCHoklch(53.82% 0.136 138.9)
XYZxyz(10.2692, 16.7020, 4.9677)
Luminance0.1670 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40802B #6B2B80
analogous
#6A802B #40802B #2B8040
triadic
#40802B #2B4080 #802B40
tetradic
#40802B #2B6A80 #6B2B80 #80402B
square
#40802B #2B6A80 #6B2B80 #80402B
split-complementary
#40802B #402B80 #802B6A
monochromatic
#12240C #29521C #40802B #57AE3A #77C95D

Accessibility & contrast

On white

4.84
#40802B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40802B
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40802B#FFFFFF#000000##FFFFFF
##40802B1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847521
Deuteranopia (green-blind)
#7B7032
Tritanopia (blue-blind)
#3B7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40802b;
/* rgb */ color: rgb(64, 128, 43);
/* oklch */ color: oklch(53.8% 0.136 138.9);
Tailwind
colors: {
  custom: {
    50: '#7ba568',
    500: '#40802b',
    950: '#000000',
  },
}
SCSS
$custom: #40802b;
$custom-light: #7ba568;
$custom-dark: #000000;
JSON
{
  "hex": "#40802b",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 105.176,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.53823,
    "c": 0.13595,
    "h": 138.9
  },
  "luminance": 0.16703
}

Semantic roles & 50–950 ramp

primary
#40802B
secondary
#9958AE
accent
#4FD9B7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #40802B

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

Preview Lab → · Contrast checker → · Palette generator →

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