#40821D#40821D

#40821D is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.2% C 0.148 H 137.2°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#40821D
RGBrgb(64, 130, 29)
HSLhsl(99, 64%, 31%)
HSVhsv(99, 78%, 51%)
CMYKcmyk(50.8%, 0%, 77.7%, 49%)
CIE-LABlab(48.44, -39.24, 45.02)
CIE-LCHlch(48.44, 59.72, 131.07°)
OKLaboklab(54.25% -0.1088 0.1008)
OKLCHoklch(54.25% 0.148 137.2)
XYZxyz(10.3184, 17.1432, 3.9274)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40821D #5F1D82
analogous
#72821D #40821D #1D822C
triadic
#40821D #1D4082 #821D40
tetradic
#40821D #1D7282 #5F1D82 #822C1D
square
#40821D #1D7282 #5F1D82 #822C1D
split-complementary
#40821D #2C1D82 #821D72
monochromatic
#0F1E07 #275012 #40821D #59B428 #76D544

Accessibility & contrast

On white

4.74
#40821D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#40821D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40821D
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40821D#FFFFFF#000000##FFFFFF
##40821D1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867607
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#3C7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40821d;
/* rgb */ color: rgb(64, 130, 29);
/* oklch */ color: oklch(54.2% 0.148 137.2);
Tailwind
colors: {
  custom: {
    50: '#7ca761',
    500: '#40821d',
    950: '#000000',
  },
}
SCSS
$custom: #40821d;
$custom-light: #7ca761;
$custom-dark: #000000;
JSON
{
  "hex": "#40821d",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 29
  },
  "hsl": {
    "h": 99.208,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54247,
    "c": 0.14836,
    "h": 137.2
  },
  "luminance": 0.17144
}

Semantic roles & 50–950 ramp

primary
#40821D
secondary
#8F46B5
accent
#41E7AD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #40821D

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

Preview Lab → · Contrast checker → · Palette generator →

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