#40841B#40841B

#40841B is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.8% C 0.152 H 137.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#40841B
RGBrgb(64, 132, 27)
HSLhsl(99, 66%, 31%)
HSVhsv(99, 80%, 52%)
CMYKcmyk(51.5%, 0%, 79.5%, 48.2%)
CIE-LABlab(49.09, -40.19, 46.36)
CIE-LCHlch(49.09, 61.35, 130.92°)
OKLaboklab(54.78% -0.1115 0.1033)
OKLCHoklch(54.78% 0.152 137.2)
XYZxyz(10.5631, 17.6709, 3.8909)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40841B #5F1B84
analogous
#74841B #40841B #1B842A
triadic
#40841B #1B4084 #841B40
tetradic
#40841B #1B7484 #5F1B84 #842A1B
square
#40841B #1B7484 #5F1B84 #842A1B
split-complementary
#40841B #2A1B84 #841B74
monochromatic
#0F1E06 #275111 #40841B #59B725 #76D841

Accessibility & contrast

On white

4.63
#40841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#40841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #40841B
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40841B#FFFFFF#000000##FFFFFF
##40841B1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897801
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#3C7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40841b;
/* rgb */ color: rgb(64, 132, 27);
/* oklch */ color: oklch(54.8% 0.152 137.2);
Tailwind
colors: {
  custom: {
    50: '#7ca860',
    500: '#40841b',
    950: '#000000',
  },
}
SCSS
$custom: #40841b;
$custom-light: #7ca860;
$custom-dark: #000000;
JSON
{
  "hex": "#40841b",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 98.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54782,
    "c": 0.15202,
    "h": 137.2
  },
  "luminance": 0.17672
}

Semantic roles & 50–950 ramp

primary
#40841B
secondary
#8F43B7
accent
#3FE9AD
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #40841B

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

Preview Lab → · Contrast checker → · Palette generator →

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