#40720F#40720F

#40720F is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.8% C 0.135 H 133.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#40720F
RGBrgb(64, 114, 15)
HSLhsl(90, 77%, 25%)
HSVhsv(90, 87%, 45%)
CMYKcmyk(43.9%, 0%, 86.8%, 55.3%)
CIE-LABlab(43.00, -33.22, 44.44)
CIE-LCHlch(43.00, 55.49, 126.78°)
OKLaboklab(49.76% -0.0936 0.0974)
OKLCHoklch(49.76% 0.135 133.9)
XYZxyz(8.2177, 13.1587, 2.5587)
Luminance0.1316 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40720F #410F72
analogous
#71720F #40720F #0F720F
triadic
#40720F #0F4072 #720F40
tetradic
#40720F #0F7172 #410F72 #720F0F
square
#40720F #0F7172 #410F72 #720F0F
split-complementary
#40720F #0F0F72 #720F71
monochromatic
#0F1B04 #223C08 #40720F #5EA816 #7DDE1D

Accessibility & contrast

On white

5.78
#40720F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#40720F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40720F
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40720F#FFFFFF#000000##FFFFFF
##40720F1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#70641B
Tritanopia (blue-blind)
#406D60
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #40720f;
/* rgb */ color: rgb(64, 114, 15);
/* oklch */ color: oklch(49.8% 0.135 133.9);
Tailwind
colors: {
  custom: {
    50: '#7a9b58',
    500: '#40720f',
    950: '#000000',
  },
}
SCSS
$custom: #40720f;
$custom-light: #7a9b58;
$custom-dark: #000000;
JSON
{
  "hex": "#40720f",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 15
  },
  "hsl": {
    "h": 90.303,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.49756,
    "c": 0.13506,
    "h": 133.9
  },
  "luminance": 0.13159
}

Semantic roles & 50–950 ramp

primary
#40720F
secondary
#6F33AA
accent
#35F395
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #40720F

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

Preview Lab → · Contrast checker → · Palette generator →

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