#40701B#40701B

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

Color values

HEX#40701B
RGBrgb(64, 112, 27)
HSLhsl(94, 61%, 27%)
HSVhsv(94, 76%, 44%)
CMYKcmyk(42.9%, 0%, 75.9%, 56.1%)
CIE-LABlab(42.39, -31.61, 39.80)
CIE-LCHlch(42.39, 50.82, 128.46°)
OKLaboklab(49.28% -0.0884 0.0896)
OKLCHoklch(49.28% 0.126 134.6)
XYZxyz(8.1062, 12.7570, 3.0719)
Luminance0.1276 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40701B #4B1B70
analogous
#6B701B #40701B #1B7020
triadic
#40701B #1B4070 #701B40
tetradic
#40701B #1B6B70 #4B1B70 #70201B
square
#40701B #1B6B70 #4B1B70 #70201B
split-complementary
#40701B #201B70 #701B6B
monochromatic
#0E1906 #243F0F #40701B #5CA127 #79CF37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40701B#FFFFFF#000000##FFFFFF
##40701B1.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)
#74670C
Deuteranopia (green-blind)
#6E6323
Tritanopia (blue-blind)
#3F6B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #40701b;
/* rgb */ color: rgb(64, 112, 27);
/* oklch */ color: oklch(49.3% 0.126 134.6);
Tailwind
colors: {
  custom: {
    50: '#79995e',
    500: '#40701b',
    950: '#000000',
  },
}
SCSS
$custom: #40701b;
$custom-light: #79995e;
$custom-dark: #000000;
JSON
{
  "hex": "#40701b",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 93.882,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49281,
    "c": 0.12586,
    "h": 134.6
  },
  "luminance": 0.12757
}

Semantic roles & 50–950 ramp

primary
#40701B
secondary
#7A42A5
accent
#44E49E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40701B

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

Preview Lab → · Contrast checker → · Palette generator →

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