#40821B#40821B

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

Color values

HEX#40821B
RGBrgb(64, 130, 27)
HSLhsl(98, 66%, 31%)
HSVhsv(98, 79%, 51%)
CMYKcmyk(50.8%, 0%, 79.2%, 49%)
CIE-LABlab(48.43, -39.37, 45.72)
CIE-LCHlch(48.43, 60.33, 130.73°)
OKLaboklab(54.23% -0.1093 0.102)
OKLCHoklch(54.23% 0.15 137)
XYZxyz(10.2945, 17.1337, 3.8014)
Luminance0.1713 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40821B #5D1B82
analogous
#73821B #40821B #1B822A
triadic
#40821B #1B4082 #821B40
tetradic
#40821B #1B7382 #5D1B82 #822A1B
square
#40821B #1B7382 #5D1B82 #822A1B
split-complementary
#40821B #2A1B82 #821B73
monochromatic
#0E1D06 #274F10 #40821B #59B526 #76D740

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40821b;
/* rgb */ color: rgb(64, 130, 27);
/* oklch */ color: oklch(54.2% 0.149 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ca760',
    500: '#40821b',
    950: '#000000',
  },
}
SCSS
$custom: #40821b;
$custom-light: #7ca760;
$custom-dark: #000000;
JSON
{
  "hex": "#40821b",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 98.447,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54233,
    "c": 0.1495,
    "h": 137
  },
  "luminance": 0.17134
}

Semantic roles & 50–950 ramp

primary
#40821B
secondary
#8C43B6
accent
#3FE9AC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40821B

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

Preview Lab → · Contrast checker → · Palette generator →

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