#40831A#40831A

#40831A is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.5% C 0.151 H 137.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#40831A
RGBrgb(64, 131, 26)
HSLhsl(98, 67%, 31%)
HSVhsv(98, 80%, 51%)
CMYKcmyk(51.1%, 0%, 80.2%, 48.6%)
CIE-LABlab(48.76, -39.84, 46.37)
CIE-LCHlch(48.76, 61.13, 130.67°)
OKLaboklab(54.5% -0.1107 0.1032)
OKLCHoklch(54.5% 0.151 137)
XYZxyz(10.4168, 17.3964, 3.7860)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40831A #5D1A83
analogous
#74831A #40831A #1A8329
triadic
#40831A #1A4083 #831A40
tetradic
#40831A #1A7483 #5D1A83 #83291A
square
#40831A #1A7483 #5D1A83 #83291A
split-complementary
#40831A #291A83 #831A74
monochromatic
#0E1D06 #275010 #40831A #59B624 #76D93F

Accessibility & contrast

On white

4.69
#40831A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#40831A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40831A
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40831A#FFFFFF#000000##FFFFFF
##40831A1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#3C7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #40831a;
/* rgb */ color: rgb(64, 131, 26);
/* oklch */ color: oklch(54.5% 0.151 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ca860',
    500: '#40831a',
    950: '#000000',
  },
}
SCSS
$custom: #40831a;
$custom-light: #7ca860;
$custom-dark: #000000;
JSON
{
  "hex": "#40831a",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 98.286,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54501,
    "c": 0.1513,
    "h": 137
  },
  "luminance": 0.17397
}

Semantic roles & 50–950 ramp

primary
#40831A
secondary
#8C42B7
accent
#3EEAAC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #40831A

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

Preview Lab → · Contrast checker → · Palette generator →

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