#40981B#40981B

#40981B is a mid, vivid green. Relative luminance 0.236; OKLCH L 60.2% C 0.176 H 138.7°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#40981B
RGBrgb(64, 152, 27)
HSLhsl(102, 70%, 35%)
HSVhsv(102, 82%, 60%)
CMYKcmyk(57.9%, 0%, 82.2%, 40.4%)
CIE-LABlab(55.71, -47.96, 52.58)
CIE-LCHlch(55.71, 71.17, 132.37°)
OKLaboklab(60.24% -0.1324 0.1163)
OKLCHoklch(60.24% 0.176 138.7)
XYZxyz(13.5399, 23.6244, 4.8832)
Luminance0.2363 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40981B #731B98
analogous
#7E981B #40981B #1B9835
triadic
#40981B #1B4098 #981B40
tetradic
#40981B #1B7E98 #731B98 #98351B
square
#40981B #1B7E98 #731B98 #98351B
split-complementary
#40981B #351B98 #981B7E
monochromatic
#143009 #2A6412 #40981B #56CC24 #79E04E

Accessibility & contrast

On white

3.67
#40981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#40981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40981B
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40981B#FFFFFF#000000##000000
##40981B1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#379381
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #40981b;
/* rgb */ color: rgb(64, 152, 27);
/* oklch */ color: oklch(60.2% 0.176 138.7);
Tailwind
colors: {
  custom: {
    50: '#7fb763',
    500: '#40981b',
    950: '#000000',
  },
}
SCSS
$custom: #40981b;
$custom-light: #7fb763;
$custom-dark: #000000;
JSON
{
  "hex": "#40981b",
  "rgb": {
    "r": 64,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 102.24,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60237,
    "c": 0.17625,
    "h": 138.7
  },
  "luminance": 0.23626
}

Semantic roles & 50–950 ramp

primary
#40981B
secondary
#9F4DC2
accent
#3BEDB8
background
#F8FBF6
surface
#EFF6EB
border
#CAD0C6
text
#0B1106
muted
#7C807A

Preview Lab

Preview with #40981B

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

Preview Lab → · Contrast checker → · Palette generator →

#40981B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva