#40841A#40841A

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

Color values

HEX#40841A
RGBrgb(64, 132, 26)
HSLhsl(98, 67%, 31%)
HSVhsv(98, 80%, 52%)
CMYKcmyk(51.5%, 0%, 80.3%, 48.2%)
CIE-LABlab(49.09, -40.25, 46.69)
CIE-LCHlch(49.09, 61.64, 130.77°)
OKLaboklab(54.78% -0.1118 0.1038)
OKLCHoklch(54.78% 0.153 137.1)
XYZxyz(10.5517, 17.6663, 3.8310)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40841A #5E1A84
analogous
#75841A #40841A #1A8429
triadic
#40841A #1A4084 #841A40
tetradic
#40841A #1A7584 #5E1A84 #84291A
square
#40841A #1A7584 #5E1A84 #84291A
split-complementary
#40841A #291A84 #841A75
monochromatic
#0E1E06 #275110 #40841A #59B724 #76D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40841A#FFFFFF#000000##FFFFFF
##40841A1.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)
#897800
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#3C7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40841a;
/* rgb */ color: rgb(64, 132, 26);
/* oklch */ color: oklch(54.8% 0.153 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ca860',
    500: '#40841a',
    950: '#000000',
  },
}
SCSS
$custom: #40841a;
$custom-light: #7ca860;
$custom-dark: #000000;
JSON
{
  "hex": "#40841a",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 26
  },
  "hsl": {
    "h": 98.491,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54775,
    "c": 0.15255,
    "h": 137.1
  },
  "luminance": 0.17667
}

Semantic roles & 50–950 ramp

primary
#40841A
secondary
#8E42B8
accent
#3EEAAC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #40841A

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

Preview Lab → · Contrast checker → · Palette generator →

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