#40802C#40802C

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

Color values

HEX#40802C
RGBrgb(64, 128, 44)
HSLhsl(106, 49%, 34%)
HSVhsv(106, 66%, 50%)
CMYKcmyk(50%, 0%, 65.6%, 49.8%)
CIE-LABlab(47.89, -37.11, 38.23)
CIE-LCHlch(47.89, 53.28, 134.15°)
OKLaboklab(53.83% -0.102 0.0886)
OKLCHoklch(53.83% 0.135 139)
XYZxyz(10.2878, 16.7095, 5.0655)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40802C #6C2C80
analogous
#6A802C #40802C #2C8042
triadic
#40802C #2C4080 #802C40
tetradic
#40802C #2C6A80 #6C2C80 #80422C
square
#40802C #2C6A80 #6C2C80 #80422C
split-complementary
#40802C #422C80 #802C6A
monochromatic
#12250D #29521C #40802C #57AE3C #78C85F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40802C#FFFFFF#000000##FFFFFF
##40802C1.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)
#847522
Deuteranopia (green-blind)
#7B7033
Tritanopia (blue-blind)
#3B7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #40802c;
/* rgb */ color: rgb(64, 128, 44);
/* oklch */ color: oklch(53.8% 0.135 139.0);
Tailwind
colors: {
  custom: {
    50: '#7ba569',
    500: '#40802c',
    950: '#000000',
  },
}
SCSS
$custom: #40802c;
$custom-light: #7ba569;
$custom-dark: #000000;
JSON
{
  "hex": "#40802c",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 44
  },
  "hsl": {
    "h": 105.714,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.53834,
    "c": 0.13514,
    "h": 139
  },
  "luminance": 0.1671
}

Semantic roles & 50–950 ramp

primary
#40802C
secondary
#9A5AAE
accent
#4FD8B8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #40802C

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

Preview Lab → · Contrast checker → · Palette generator →

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