#40891B#40891B

#40891B is a mid, vivid yellow-green. Relative luminance 0.191; OKLCH L 56.2% C 0.158 H 137.6°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#40891B
RGBrgb(64, 137, 27)
HSLhsl(100, 67%, 32%)
HSVhsv(100, 80%, 54%)
CMYKcmyk(53.3%, 0%, 80.3%, 46.3%)
CIE-LABlab(50.76, -42.20, 47.94)
CIE-LCHlch(50.76, 63.87, 131.35°)
OKLaboklab(56.15% -0.1169 0.1066)
OKLCHoklch(56.15% 0.158 137.6)
XYZxyz(11.2575, 19.0596, 4.1224)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40891B #641B89
analogous
#77891B #40891B #1B892D
triadic
#40891B #1B4089 #891B40
tetradic
#40891B #1B7789 #641B89 #892D1B
square
#40891B #1B7789 #641B89 #892D1B
split-complementary
#40891B #2D1B89 #891B77
monochromatic
#102307 #285611 #40891B #58BC25 #77DA44

Accessibility & contrast

On white

4.36
#40891B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#40891B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40891B
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40891B#FFFFFF#000000##000000
##40891B1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#3B8475
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #40891b;
/* rgb */ color: rgb(64, 137, 27);
/* oklch */ color: oklch(56.2% 0.158 137.6);
Tailwind
colors: {
  custom: {
    50: '#7dac61',
    500: '#40891b',
    950: '#000000',
  },
}
SCSS
$custom: #40891b;
$custom-light: #7dac61;
$custom-dark: #000000;
JSON
{
  "hex": "#40891b",
  "rgb": {
    "r": 64,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 99.818,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56151,
    "c": 0.15824,
    "h": 137.6
  },
  "luminance": 0.1906
}

Semantic roles & 50–950 ramp

primary
#40891B
secondary
#9344BC
accent
#3EEAB0
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40891B

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

Preview Lab → · Contrast checker → · Palette generator →

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