#40704F#40704F

#40704F is a mid, moderate green. Relative luminance 0.132; OKLCH L 50.1% C 0.075 H 153.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#40704F
RGBrgb(64, 112, 79)
HSLhsl(139, 27%, 35%)
HSVhsv(139, 43%, 44%)
CMYKcmyk(42.9%, 0%, 29.5%, 56.1%)
CIE-LABlab(43.13, -24.29, 13.36)
CIE-LCHlch(43.13, 27.72, 151.19°)
OKLaboklab(50.11% -0.0665 0.0339)
OKLCHoklch(50.11% 0.075 153)
XYZxyz(9.3192, 13.2422, 9.4606)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40704F #704061
analogous
#497040 #40704F #407067
triadic
#40704F #4F4070 #704F40
tetradic
#40704F #404970 #704061 #706740
square
#40704F #404970 #704061 #706740
split-complementary
#40704F #674070 #704049
monochromatic
#132218 #2A4934 #40704F #56976A #78B28A

Accessibility & contrast

On white

5.76
#40704F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#40704F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40704F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40704F#FFFFFF#000000##FFFFFF
##40704F1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70694D
Deuteranopia (green-blind)
#696451
Tritanopia (blue-blind)
#376F67
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #40704f;
/* rgb */ color: rgb(64, 112, 79);
/* oklch */ color: oklch(50.1% 0.075 153.0);
Tailwind
colors: {
  custom: {
    50: '#779980',
    500: '#40704f',
    950: '#000000',
  },
}
SCSS
$custom: #40704f;
$custom-light: #779980;
$custom-dark: #000000;
JSON
{
  "hex": "#40704f",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 79
  },
  "hsl": {
    "h": 138.75,
    "s": 27.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.50115,
    "c": 0.07466,
    "h": 153
  },
  "luminance": 0.13243
}

Semantic roles & 50–950 ramp

primary
#40704F
secondary
#9D6F8F
accent
#64A6C4
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#090E0A
muted
#7B7E7C

Preview Lab

Preview with #40704F

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

Preview Lab → · Contrast checker → · Palette generator →

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