#40701F#40701F

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

Color values

HEX#40701F
RGBrgb(64, 112, 31)
HSLhsl(96, 57%, 28%)
HSVhsv(96, 72%, 44%)
CMYKcmyk(42.9%, 0%, 72.3%, 56.1%)
CIE-LABlab(42.42, -31.30, 38.17)
CIE-LCHlch(42.42, 49.36, 129.35°)
OKLaboklab(49.32% -0.0872 0.0868)
OKLCHoklch(49.32% 0.123 135.1)
XYZxyz(8.1557, 12.7768, 3.3325)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40701F #4F1F70
analogous
#68701F #40701F #1F7027
triadic
#40701F #1F4070 #701F40
tetradic
#40701F #1F6870 #4F1F70 #70271F
square
#40701F #1F6870 #4F1F70 #70271F
split-complementary
#40701F #271F70 #701F68
monochromatic
#0E1807 #254012 #40701F #5BA02C #78CA3F

Accessibility & contrast

On white

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

On black

3.56
#40701F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40701F#FFFFFF#000000##FFFFFF
##40701F1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40701f;
/* rgb */ color: rgb(64, 112, 31);
/* oklch */ color: oklch(49.3% 0.123 135.1);
Tailwind
colors: {
  custom: {
    50: '#799960',
    500: '#40701f',
    950: '#000000',
  },
}
SCSS
$custom: #40701f;
$custom-light: #799960;
$custom-dark: #000000;
JSON
{
  "hex": "#40701f",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 95.556,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49315,
    "c": 0.12305,
    "h": 135.1
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#40701F
secondary
#7E47A4
accent
#48E0A2
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40701F

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

Preview Lab → · Contrast checker → · Palette generator →

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