#40951F#40951F

#40951F is a mid, vivid green. Relative luminance 0.227; OKLCH L 59.4% C 0.171 H 138.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#40951F
RGBrgb(64, 149, 31)
HSLhsl(103, 66%, 35%)
HSVhsv(103, 79%, 58%)
CMYKcmyk(57%, 0%, 79.2%, 41.6%)
CIE-LABlab(54.74, -46.60, 50.43)
CIE-LCHlch(54.74, 68.67, 132.74°)
OKLaboklab(59.45% -0.1285 0.1124)
OKLCHoklch(59.45% 0.171 138.8)
XYZxyz(13.1086, 22.6827, 4.9835)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40951F #741F95
analogous
#7B951F #40951F #1F9539
triadic
#40951F #1F4095 #951F40
tetradic
#40951F #1F7B95 #741F95 #95391F
square
#40951F #1F7B95 #741F95 #95391F
split-complementary
#40951F #391F95 #951F7B
monochromatic
#14300A #2A6214 #40951F #56C82A #79DB53

Accessibility & contrast

On white

3.79
#40951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#40951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40951F
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40951F#FFFFFF#000000##000000
##40951F1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#8F802C
Tritanopia (blue-blind)
#37907F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #40951f;
/* rgb */ color: rgb(64, 149, 31);
/* oklch */ color: oklch(59.4% 0.171 138.8);
Tailwind
colors: {
  custom: {
    50: '#7fb565',
    500: '#40951f',
    950: '#000000',
  },
}
SCSS
$custom: #40951f;
$custom-light: #7fb565;
$custom-dark: #000000;
JSON
{
  "hex": "#40951f",
  "rgb": {
    "r": 64,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 103.22,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59446,
    "c": 0.17077,
    "h": 138.8
  },
  "luminance": 0.22684
}

Semantic roles & 50–950 ramp

primary
#40951F
secondary
#A051BF
accent
#3FE9B9
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #40951F

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

Preview Lab → · Contrast checker → · Palette generator →

#40951F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva