#407F28#407F28

#407F28 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.5% C 0.137 H 138.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#407F28
RGBrgb(64, 127, 40)
HSLhsl(103, 52%, 33%)
HSVhsv(103, 69%, 50%)
CMYKcmyk(49.6%, 0%, 68.5%, 50.2%)
CIE-LABlab(47.52, -37.08, 39.64)
CIE-LCHlch(47.52, 54.28, 133.09°)
OKLaboklab(53.52% -0.1022 0.0911)
OKLCHoklch(53.52% 0.137 138.3)
XYZxyz(10.0864, 16.4212, 4.6452)
Luminance0.1642 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F28 #67287F
analogous
#6C7F28 #407F28 #287F3B
triadic
#407F28 #28407F #7F2840
tetradic
#407F28 #286C7F #67287F #7F3B28
square
#407F28 #286C7F #67287F #7F3B28
split-complementary
#407F28 #3B287F #7F286C
monochromatic
#11220B #295019 #407F28 #57AE37 #77CA57

Accessibility & contrast

On white

4.90
#407F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#407F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F28
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F28#FFFFFF#000000##FFFFFF
##407F281.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741C
Deuteranopia (green-blind)
#7B6F30
Tritanopia (blue-blind)
#3B7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f28;
/* rgb */ color: rgb(64, 127, 40);
/* oklch */ color: oklch(53.5% 0.137 138.3);
Tailwind
colors: {
  custom: {
    50: '#7ba566',
    500: '#407f28',
    950: '#000000',
  },
}
SCSS
$custom: #407f28;
$custom-light: #7ba566;
$custom-dark: #000000;
JSON
{
  "hex": "#407f28",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 103.448,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53519,
    "c": 0.13695,
    "h": 138.3
  },
  "luminance": 0.16422
}

Semantic roles & 50–950 ramp

primary
#407F28
secondary
#9654AF
accent
#4CDCB4
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407F28

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

Preview Lab → · Contrast checker → · Palette generator →

#407F28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva