#40711B#40711B

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

Color values

HEX#40711B
RGBrgb(64, 113, 27)
HSLhsl(94, 61%, 27%)
HSVhsv(94, 76%, 44%)
CMYKcmyk(43.4%, 0%, 76.1%, 55.7%)
CIE-LABlab(42.73, -32.07, 40.13)
CIE-LCHlch(42.73, 51.37, 128.62°)
OKLaboklab(49.56% -0.0896 0.0903)
OKLCHoklch(49.56% 0.127 134.8)
XYZxyz(8.2171, 12.9789, 3.1089)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40711B #4C1B71
analogous
#6B711B #40711B #1B7121
triadic
#40711B #1B4071 #711B40
tetradic
#40711B #1B6B71 #4C1B71 #71211B
square
#40711B #1B6B71 #4C1B71 #71211B
split-complementary
#40711B #211B71 #711B6B
monochromatic
#0E1906 #24400F #40711B #5CA227 #79CF37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40711B#FFFFFF#000000##FFFFFF
##40711B1.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)
#75670B
Deuteranopia (green-blind)
#6F6323
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #40711b;
/* rgb */ color: rgb(64, 113, 27);
/* oklch */ color: oklch(49.6% 0.127 134.8);
Tailwind
colors: {
  custom: {
    50: '#7a9a5e',
    500: '#40711b',
    950: '#000000',
  },
}
SCSS
$custom: #40711b;
$custom-light: #7a9a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40711b",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 27
  },
  "hsl": {
    "h": 94.186,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49556,
    "c": 0.12722,
    "h": 134.8
  },
  "luminance": 0.12979
}

Semantic roles & 50–950 ramp

primary
#40711B
secondary
#7B42A6
accent
#43E59F
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40711B

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

Preview Lab → · Contrast checker → · Palette generator →

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