#40942A#40942A

#40942A is a mid, vivid green. Relative luminance 0.224; OKLCH L 59.3% C 0.163 H 139.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#40942A
RGBrgb(64, 148, 42)
HSLhsl(108, 56%, 37%)
HSVhsv(108, 72%, 58%)
CMYKcmyk(56.8%, 0%, 71.6%, 42%)
CIE-LABlab(54.49, -45.41, 46.15)
CIE-LCHlch(54.49, 64.74, 134.53°)
OKLaboklab(59.26% -0.1246 0.105)
OKLCHoklch(59.26% 0.163 139.9)
XYZxyz(13.1216, 22.4359, 5.8291)
Luminance0.2244 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40942A #7E2A94
analogous
#75942A #40942A #2A9449
triadic
#40942A #2A4094 #942A40
tetradic
#40942A #2A7594 #7E2A94 #94492A
square
#40942A #2A7594 #7E2A94 #94492A
split-complementary
#40942A #492A94 #942A75
monochromatic
#17350F #2B641C #40942A #55C438 #7CD365

Accessibility & contrast

On white

3.83
#40942A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#40942A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40942A
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40942A#FFFFFF#000000##000000
##40942A1.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#988719
Deuteranopia (green-blind)
#8E8034
Tritanopia (blue-blind)
#368F7F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #40942a;
/* rgb */ color: rgb(64, 148, 42);
/* oklch */ color: oklch(59.3% 0.163 139.9);
Tailwind
colors: {
  custom: {
    50: '#7eb46a',
    500: '#40942a',
    950: '#000000',
  },
}
SCSS
$custom: #40942a;
$custom-light: #7eb46a;
$custom-dark: #000000;
JSON
{
  "hex": "#40942a",
  "rgb": {
    "r": 64,
    "g": 148,
    "b": 42
  },
  "hsl": {
    "h": 107.547,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59256,
    "c": 0.163,
    "h": 139.9
  },
  "luminance": 0.22437
}

Semantic roles & 50–950 ramp

primary
#40942A
secondary
#A760B9
accent
#49DFC0
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1107
muted
#7C807A

Preview Lab

Preview with #40942A

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

Preview Lab → · Contrast checker → · Palette generator →

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