#40821A#40821A

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

Color values

HEX#40821A
RGBrgb(64, 130, 26)
HSLhsl(98, 67%, 31%)
HSVhsv(98, 80%, 51%)
CMYKcmyk(50.8%, 0%, 80%, 49%)
CIE-LABlab(48.42, -39.43, 46.05)
CIE-LCHlch(48.42, 60.63, 130.57°)
OKLaboklab(54.23% -0.1096 0.1025)
OKLCHoklch(54.23% 0.15 136.9)
XYZxyz(10.2831, 17.1291, 3.7415)
Luminance0.1713 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40821A #5C1A82
analogous
#74821A #40821A #1A8228
triadic
#40821A #1A4082 #821A40
tetradic
#40821A #1A7482 #5C1A82 #82281A
square
#40821A #1A7482 #5C1A82 #82281A
split-complementary
#40821A #281A82 #821A74
monochromatic
#0E1C06 #274F10 #40821A #59B524 #76D83E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40821A#FFFFFF#000000##FFFFFF
##40821A1.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)
#877600
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#3C7D6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40821a;
/* rgb */ color: rgb(64, 130, 26);
/* oklch */ color: oklch(54.2% 0.150 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ca760',
    500: '#40821a',
    950: '#000000',
  },
}
SCSS
$custom: #40821a;
$custom-light: #7ca760;
$custom-dark: #000000;
JSON
{
  "hex": "#40821a",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 26
  },
  "hsl": {
    "h": 98.077,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54227,
    "c": 0.15004,
    "h": 136.9
  },
  "luminance": 0.1713
}

Semantic roles & 50–950 ramp

primary
#40821A
secondary
#8B42B6
accent
#3EEAAB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40821A

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

Preview Lab → · Contrast checker → · Palette generator →

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