#40701D#40701D

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

Color values

HEX#40701D
RGBrgb(64, 112, 29)
HSLhsl(95, 59%, 28%)
HSVhsv(95, 74%, 44%)
CMYKcmyk(42.9%, 0%, 74.1%, 56.1%)
CIE-LABlab(42.41, -31.46, 39.00)
CIE-LCHlch(42.41, 50.11, 128.89°)
OKLaboklab(49.3% -0.0878 0.0882)
OKLCHoklch(49.3% 0.124 134.9)
XYZxyz(8.1301, 12.7666, 3.1980)
Luminance0.1277 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40701D #4D1D70
analogous
#69701D #40701D #1D7024
triadic
#40701D #1D4070 #701D40
tetradic
#40701D #1D6970 #4D1D70 #70241D
square
#40701D #1D6970 #4D1D70 #70241D
split-complementary
#40701D #241D70 #701D69
monochromatic
#0E1806 #243F10 #40701D #5CA12A #78CC3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40701D#FFFFFF#000000##FFFFFF
##40701D1.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)
#74670F
Deuteranopia (green-blind)
#6E6325
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #40701d;
/* rgb */ color: rgb(64, 112, 29);
/* oklch */ color: oklch(49.3% 0.124 134.9);
Tailwind
colors: {
  custom: {
    50: '#79995f',
    500: '#40701d',
    950: '#000000',
  },
}
SCSS
$custom: #40701d;
$custom-light: #79995f;
$custom-dark: #000000;
JSON
{
  "hex": "#40701d",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 29
  },
  "hsl": {
    "h": 94.699,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49297,
    "c": 0.12449,
    "h": 134.9
  },
  "luminance": 0.12767
}

Semantic roles & 50–950 ramp

primary
#40701D
secondary
#7C44A4
accent
#46E2A0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40701D

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

Preview Lab → · Contrast checker → · Palette generator →

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