#40701A#40701A

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

Color values

HEX#40701A
RGBrgb(64, 112, 26)
HSLhsl(93, 62%, 27%)
HSVhsv(93, 77%, 44%)
CMYKcmyk(42.9%, 0%, 76.8%, 56.1%)
CIE-LABlab(42.39, -31.69, 40.18)
CIE-LCHlch(42.39, 51.17, 128.26°)
OKLaboklab(49.27% -0.0887 0.0902)
OKLCHoklch(49.27% 0.127 134.5)
XYZxyz(8.0948, 12.7525, 3.0120)
Luminance0.1275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40701A #4A1A70
analogous
#6B701A #40701A #1A701F
triadic
#40701A #1A4070 #701A40
tetradic
#40701A #1A6B70 #4A1A70 #701F1A
square
#40701A #1A6B70 #4A1A70 #701F1A
split-complementary
#40701A #1F1A70 #701A6B
monochromatic
#0E1906 #243E0E #40701A #5CA226 #79D034

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40701A#FFFFFF#000000##FFFFFF
##40701A1.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)
#746709
Deuteranopia (green-blind)
#6E6322
Tritanopia (blue-blind)
#3F6B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #40701a;
/* rgb */ color: rgb(64, 112, 26);
/* oklch */ color: oklch(49.3% 0.127 134.5);
Tailwind
colors: {
  custom: {
    50: '#79995d',
    500: '#40701a',
    950: '#000000',
  },
}
SCSS
$custom: #40701a;
$custom-light: #79995d;
$custom-dark: #000000;
JSON
{
  "hex": "#40701a",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 26
  },
  "hsl": {
    "h": 93.488,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49273,
    "c": 0.12651,
    "h": 134.5
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#40701A
secondary
#7941A5
accent
#42E59D
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #40701A

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

Preview Lab → · Contrast checker → · Palette generator →

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