#397828#397828

#397828 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.3% C 0.131 H 139.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#397828
RGBrgb(57, 120, 40)
HSLhsl(107, 50%, 31%)
HSVhsv(107, 67%, 47%)
CMYKcmyk(52.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.88, -36.33, 36.68)
CIE-LCHlch(44.88, 51.62, 134.73°)
OKLaboklab(51.27% -0.0997 0.0849)
OKLCHoklch(51.27% 0.131 139.6)
XYZxyz(8.7865, 14.4553, 4.3342)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397828 #672878
analogous
#617828 #397828 #28783F
triadic
#397828 #283978 #782839
tetradic
#397828 #286178 #672878 #783F28
square
#397828 #286178 #672878 #783F28
split-complementary
#397828 #3F2878 #782861
monochromatic
#0D1C09 #234A19 #397828 #4FA637 #6CC654

Accessibility & contrast

On white

5.40
#397828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#397828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397828
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397828#FFFFFF#000000##FFFFFF
##3978281.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E1E
Deuteranopia (green-blind)
#73682F
Tritanopia (blue-blind)
#337467
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #397828;
/* rgb */ color: rgb(57, 120, 40);
/* oklch */ color: oklch(51.3% 0.131 139.6);
Tailwind
colors: {
  custom: {
    50: '#769f66',
    500: '#397828',
    950: '#000000',
  },
}
SCSS
$custom: #397828;
$custom-light: #769f66;
$custom-dark: #000000;
JSON
{
  "hex": "#397828",
  "rgb": {
    "r": 57,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 107.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51265,
    "c": 0.13099,
    "h": 139.6
  },
  "luminance": 0.14456
}

Semantic roles & 50–950 ramp

primary
#397828
secondary
#9752AA
accent
#4EDABC
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #397828

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

Preview Lab → · Contrast checker → · Palette generator →

#397828 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva