#40841D#40841D

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

Color values

HEX#40841D
RGBrgb(64, 132, 29)
HSLhsl(100, 64%, 32%)
HSVhsv(100, 78%, 52%)
CMYKcmyk(51.5%, 0%, 78%, 48.2%)
CIE-LABlab(49.11, -40.06, 45.67)
CIE-LCHlch(49.11, 60.75, 131.25°)
OKLaboklab(54.8% -0.111 0.1022)
OKLCHoklch(54.8% 0.151 137.4)
XYZxyz(10.5870, 17.6805, 4.0170)
Luminance0.1768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40841D #611D84
analogous
#74841D #40841D #1D842E
triadic
#40841D #1D4084 #841D40
tetradic
#40841D #1D7484 #611D84 #842E1D
square
#40841D #1D7484 #611D84 #842E1D
split-complementary
#40841D #2E1D84 #841D74
monochromatic
#0F2007 #285212 #40841D #58B628 #76D645

Accessibility & contrast

On white

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

On black

4.54
#40841D on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40841D#FFFFFF#000000##FFFFFF
##40841D1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40841d;
/* rgb */ color: rgb(64, 132, 29);
/* oklch */ color: oklch(54.8% 0.151 137.4);
Tailwind
colors: {
  custom: {
    50: '#7ca861',
    500: '#40841d',
    950: '#000000',
  },
}
SCSS
$custom: #40841d;
$custom-light: #7ca861;
$custom-dark: #000000;
JSON
{
  "hex": "#40841d",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 29
  },
  "hsl": {
    "h": 99.612,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54795,
    "c": 0.1509,
    "h": 137.4
  },
  "luminance": 0.17681
}

Semantic roles & 50–950 ramp

primary
#40841D
secondary
#9146B7
accent
#41E7AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40841D

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

Preview Lab → · Contrast checker → · Palette generator →

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