#40711C#40711C

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

Color values

HEX#40711C
RGBrgb(64, 113, 28)
HSLhsl(95, 60%, 28%)
HSVhsv(95, 75%, 44%)
CMYKcmyk(43.4%, 0%, 75.2%, 55.7%)
CIE-LABlab(42.74, -31.99, 39.74)
CIE-LCHlch(42.74, 51.02, 128.83°)
OKLaboklab(49.57% -0.0893 0.0896)
OKLCHoklch(49.57% 0.127 134.9)
XYZxyz(8.2289, 12.9836, 3.1709)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40711C #4D1C71
analogous
#6B711C #40711C #1C7122
triadic
#40711C #1C4071 #711C40
tetradic
#40711C #1C6B71 #4D1C71 #71221C
square
#40711C #1C6B71 #4D1C71 #71221C
split-complementary
#40711C #221C71 #711C6B
monochromatic
#0E1906 #244010 #40711C #5CA228 #78CE39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40711c;
/* rgb */ color: rgb(64, 113, 28);
/* oklch */ color: oklch(49.6% 0.127 134.9);
Tailwind
colors: {
  custom: {
    50: '#799a5e',
    500: '#40711c',
    950: '#000000',
  },
}
SCSS
$custom: #40711c;
$custom-light: #799a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40711c",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 28
  },
  "hsl": {
    "h": 94.588,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49565,
    "c": 0.12655,
    "h": 134.9
  },
  "luminance": 0.12984
}

Semantic roles & 50–950 ramp

primary
#40711C
secondary
#7C43A6
accent
#44E3A0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40711C

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

Preview Lab → · Contrast checker → · Palette generator →

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