#397D21#397D21

#397D21 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.6% C 0.143 H 138.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#397D21
RGBrgb(57, 125, 33)
HSLhsl(104, 58%, 31%)
HSVhsv(104, 74%, 49%)
CMYKcmyk(54.4%, 0%, 73.6%, 51%)
CIE-LABlab(46.51, -39.07, 41.46)
CIE-LCHlch(46.51, 56.96, 133.30°)
OKLaboklab(52.59% -0.1076 0.0941)
OKLCHoklch(52.59% 0.143 138.9)
XYZxyz(9.2951, 15.6462, 3.9688)
Luminance0.1565 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397D21 #65217D
analogous
#677D21 #397D21 #217D37
triadic
#397D21 #21397D #7D2139
tetradic
#397D21 #21677D #65217D #7D3721
square
#397D21 #21677D #65217D #7D3721
split-complementary
#397D21 #37217D #7D2167
monochromatic
#0D1C07 #234D14 #397D21 #4FAD2E #6CCF49

Accessibility & contrast

On white

5.09
#397D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#397D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397D21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397D21#FFFFFF#000000##FFFFFF
##397D211.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#33796B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #397d21;
/* rgb */ color: rgb(57, 125, 33);
/* oklch */ color: oklch(52.6% 0.143 138.9);
Tailwind
colors: {
  custom: {
    50: '#77a362',
    500: '#397d21',
    950: '#000000',
  },
}
SCSS
$custom: #397d21;
$custom-light: #77a362;
$custom-dark: #000000;
JSON
{
  "hex": "#397d21",
  "rgb": {
    "r": 57,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 104.348,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52586,
    "c": 0.14293,
    "h": 138.9
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#397D21
secondary
#954AB0
accent
#46E1B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #397D21

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

Preview Lab → · Contrast checker → · Palette generator →

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