#40701C#40701C

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

Color values

HEX#40701C
RGBrgb(64, 112, 28)
HSLhsl(94, 60%, 27%)
HSVhsv(94, 75%, 44%)
CMYKcmyk(42.9%, 0%, 75%, 56.1%)
CIE-LABlab(42.40, -31.54, 39.40)
CIE-LCHlch(42.40, 50.47, 128.68°)
OKLaboklab(49.29% -0.0881 0.0889)
OKLCHoklch(49.29% 0.125 134.7)
XYZxyz(8.1180, 12.7617, 3.1339)
Luminance0.1276 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40701C #4C1C70
analogous
#6A701C #40701C #1C7022
triadic
#40701C #1C4070 #701C40
tetradic
#40701C #1C6A70 #4C1C70 #70221C
square
#40701C #1C6A70 #4C1C70 #70221C
split-complementary
#40701C #221C70 #701C6A
monochromatic
#0E1806 #243F10 #40701C #5CA128 #79CD39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40701C#FFFFFF#000000##FFFFFF
##40701C1.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)
#74670E
Deuteranopia (green-blind)
#6E6324
Tritanopia (blue-blind)
#3F6C60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #40701c;
/* rgb */ color: rgb(64, 112, 28);
/* oklch */ color: oklch(49.3% 0.125 134.7);
Tailwind
colors: {
  custom: {
    50: '#79995e',
    500: '#40701c',
    950: '#000000',
  },
}
SCSS
$custom: #40701c;
$custom-light: #79995e;
$custom-dark: #000000;
JSON
{
  "hex": "#40701c",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 94.286,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49289,
    "c": 0.12519,
    "h": 134.7
  },
  "luminance": 0.12762
}

Semantic roles & 50–950 ramp

primary
#40701C
secondary
#7B43A5
accent
#45E39F
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #40701C

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

Preview Lab → · Contrast checker → · Palette generator →

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