#40711A#40711A

#40711A is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.5% C 0.128 H 134.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#40711A
RGBrgb(64, 113, 26)
HSLhsl(94, 63%, 27%)
HSVhsv(94, 77%, 44%)
CMYKcmyk(43.4%, 0%, 77%, 55.7%)
CIE-LABlab(42.72, -32.14, 40.52)
CIE-LCHlch(42.72, 51.71, 128.42°)
OKLaboklab(49.55% -0.0899 0.0909)
OKLCHoklch(49.55% 0.128 134.7)
XYZxyz(8.2058, 12.9744, 3.0490)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40711A #4B1A71
analogous
#6C711A #40711A #1A711F
triadic
#40711A #1A4071 #711A40
tetradic
#40711A #1A6C71 #4B1A71 #711F1A
square
#40711A #1A6C71 #4B1A71 #711F1A
split-complementary
#40711A #1F1A71 #711A6C
monochromatic
#0E1906 #243F0F #40711A #5CA325 #79D035

Accessibility & contrast

On white

5.84
#40711A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#40711A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40711A
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40711A#FFFFFF#000000##FFFFFF
##40711A1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756709
Deuteranopia (green-blind)
#6F6323
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40711a;
/* rgb */ color: rgb(64, 113, 26);
/* oklch */ color: oklch(49.5% 0.128 134.7);
Tailwind
colors: {
  custom: {
    50: '#7a9a5d',
    500: '#40711a',
    950: '#000000',
  },
}
SCSS
$custom: #40711a;
$custom-light: #7a9a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#40711a",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 26
  },
  "hsl": {
    "h": 93.793,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49549,
    "c": 0.12787,
    "h": 134.7
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#40711A
secondary
#7A41A6
accent
#42E69E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #40711A

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

Preview Lab → · Contrast checker → · Palette generator →

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