#40802A#40802A

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

Color values

HEX#40802A
RGBrgb(64, 128, 42)
HSLhsl(105, 51%, 33%)
HSVhsv(105, 67%, 50%)
CMYKcmyk(50%, 0%, 67.2%, 49.8%)
CIE-LABlab(47.87, -37.31, 39.12)
CIE-LCHlch(47.87, 54.06, 133.65°)
OKLaboklab(53.81% -0.1027 0.0903)
OKLCHoklch(53.81% 0.137 138.7)
XYZxyz(10.2511, 16.6948, 4.8723)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40802A #6A2A80
analogous
#6B802A #40802A #2A803F
triadic
#40802A #2A4080 #802A40
tetradic
#40802A #2A6B80 #6A2A80 #803F2A
square
#40802A #2A6B80 #6A2A80 #803F2A
split-complementary
#40802A #3F2A80 #802A6B
monochromatic
#12240C #29521B #40802A #57AE39 #77C95B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40802A#FFFFFF#000000##FFFFFF
##40802A1.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)
#84751F
Deuteranopia (green-blind)
#7B7031
Tritanopia (blue-blind)
#3B7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40802a;
/* rgb */ color: rgb(64, 128, 42);
/* oklch */ color: oklch(53.8% 0.137 138.7);
Tailwind
colors: {
  custom: {
    50: '#7ba568',
    500: '#40802a',
    950: '#000000',
  },
}
SCSS
$custom: #40802a;
$custom-light: #7ba568;
$custom-dark: #000000;
JSON
{
  "hex": "#40802a",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 104.651,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.53813,
    "c": 0.13675,
    "h": 138.7
  },
  "luminance": 0.16695
}

Semantic roles & 50–950 ramp

primary
#40802A
secondary
#9857AF
accent
#4EDAB6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #40802A

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

Preview Lab → · Contrast checker → · Palette generator →

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