#397B21#397B21

#397B21 is a mid, vivid green. Relative luminance 0.151; OKLCH L 52.0% C 0.140 H 138.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#397B21
RGBrgb(57, 123, 33)
HSLhsl(104, 58%, 31%)
HSVhsv(104, 73%, 48%)
CMYKcmyk(53.7%, 0%, 73.2%, 51.8%)
CIE-LABlab(45.83, -38.25, 40.76)
CIE-LCHlch(45.83, 55.90, 133.18°)
OKLaboklab(52.03% -0.1054 0.0926)
OKLCHoklch(52.03% 0.14 138.7)
XYZxyz(9.0445, 15.1449, 3.8852)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B21 #63217B
analogous
#667B21 #397B21 #217B36
triadic
#397B21 #21397B #7B2139
tetradic
#397B21 #21667B #63217B #7B3621
square
#397B21 #21667B #63217B #7B3621
split-complementary
#397B21 #36217B #7B2166
monochromatic
#0C1A07 #234B14 #397B21 #4FAB2E #6CCE48

Accessibility & contrast

On white

5.21
#397B21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#397B21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397B21
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397B21#FFFFFF#000000##FFFFFF
##397B211.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7013
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#337769
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #397b21;
/* rgb */ color: rgb(57, 123, 33);
/* oklch */ color: oklch(52.0% 0.140 138.7);
Tailwind
colors: {
  custom: {
    50: '#76a262',
    500: '#397b21',
    950: '#000000',
  },
}
SCSS
$custom: #397b21;
$custom-light: #76a262;
$custom-dark: #000000;
JSON
{
  "hex": "#397b21",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 33
  },
  "hsl": {
    "h": 104,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5203,
    "c": 0.14031,
    "h": 138.7
  },
  "luminance": 0.15146
}

Semantic roles & 50–950 ramp

primary
#397B21
secondary
#934AAE
accent
#47E1B8
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #397B21

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

Preview Lab → · Contrast checker → · Palette generator →

#397B21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva