#40851F#40851F

#40851F is a mid, vivid green. Relative luminance 0.180; OKLCH L 55.1% C 0.151 H 137.7°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#40851F
RGBrgb(64, 133, 31)
HSLhsl(101, 62%, 32%)
HSVhsv(101, 77%, 52%)
CMYKcmyk(51.9%, 0%, 76.7%, 47.8%)
CIE-LABlab(49.45, -40.33, 45.29)
CIE-LCHlch(49.45, 60.64, 131.68°)
OKLaboklab(55.08% -0.1116 0.1017)
OKLCHoklch(55.08% 0.151 137.7)
XYZxyz(10.7488, 17.9632, 4.1969)
Luminance0.1796 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40851F #641F85
analogous
#73851F #40851F #1F8531
triadic
#40851F #1F4085 #851F40
tetradic
#40851F #1F7385 #641F85 #85311F
square
#40851F #1F7385 #641F85 #85311F
split-complementary
#40851F #311F85 #851F73
monochromatic
#102208 #285313 #40851F #58B72B #77D54A

Accessibility & contrast

On white

4.57
#40851F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#40851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40851F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40851F#FFFFFF#000000##000000
##40851F1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790A
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#3B8071
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #40851f;
/* rgb */ color: rgb(64, 133, 31);
/* oklch */ color: oklch(55.1% 0.151 137.7);
Tailwind
colors: {
  custom: {
    50: '#7ca962',
    500: '#40851f',
    950: '#000000',
  },
}
SCSS
$custom: #40851f;
$custom-light: #7ca962;
$custom-dark: #000000;
JSON
{
  "hex": "#40851f",
  "rgb": {
    "r": 64,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 100.588,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55083,
    "c": 0.151,
    "h": 137.7
  },
  "luminance": 0.17964
}

Semantic roles & 50–950 ramp

primary
#40851F
secondary
#9349B7
accent
#43E5B1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40851F

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

Preview Lab → · Contrast checker → · Palette generator →

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