#40701E#40701E

#40701E is a mid, vivid yellow-green. Relative luminance 0.128; OKLCH L 49.3% C 0.124 H 135.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#40701E
RGBrgb(64, 112, 30)
HSLhsl(95, 58%, 28%)
HSVhsv(95, 73%, 44%)
CMYKcmyk(42.9%, 0%, 73.2%, 56.1%)
CIE-LABlab(42.42, -31.38, 38.59)
CIE-LCHlch(42.42, 49.74, 129.12°)
OKLaboklab(49.31% -0.0875 0.0875)
OKLCHoklch(49.31% 0.124 135)
XYZxyz(8.1427, 12.7716, 3.2642)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40701E #4E1E70
analogous
#69701E #40701E #1E7025
triadic
#40701E #1E4070 #701E40
tetradic
#40701E #1E6970 #4E1E70 #70251E
square
#40701E #1E6970 #4E1E70 #70251E
split-complementary
#40701E #251E70 #701E69
monochromatic
#0E1806 #244011 #40701E #5CA02B #78CB3D

Accessibility & contrast

On white

5.91
#40701E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#40701E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40701E
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40701E#FFFFFF#000000##FFFFFF
##40701E1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746711
Deuteranopia (green-blind)
#6E6325
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #40701e;
/* rgb */ color: rgb(64, 112, 30);
/* oklch */ color: oklch(49.3% 0.124 135.0);
Tailwind
colors: {
  custom: {
    50: '#79995f',
    500: '#40701e',
    950: '#000000',
  },
}
SCSS
$custom: #40701e;
$custom-light: #79995f;
$custom-dark: #000000;
JSON
{
  "hex": "#40701e",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 30
  },
  "hsl": {
    "h": 95.122,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49306,
    "c": 0.12378,
    "h": 135
  },
  "luminance": 0.12772
}

Semantic roles & 50–950 ramp

primary
#40701E
secondary
#7D46A4
accent
#47E1A1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40701E

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

Preview Lab → · Contrast checker → · Palette generator →

#40701E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva