#397F21#397F21

#397F21 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.146 H 139.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#397F21
RGBrgb(57, 127, 33)
HSLhsl(105, 59%, 31%)
HSVhsv(105, 74%, 50%)
CMYKcmyk(55.1%, 0%, 74%, 50.2%)
CIE-LABlab(47.18, -39.88, 42.15)
CIE-LCHlch(47.18, 58.02, 133.41°)
OKLaboklab(53.14% -0.1098 0.0955)
OKLCHoklch(53.14% 0.146 139)
XYZxyz(9.5509, 16.1577, 4.0540)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397F21 #67217F
analogous
#687F21 #397F21 #217F38
triadic
#397F21 #21397F #7F2139
tetradic
#397F21 #21687F #67217F #7F3821
square
#397F21 #21687F #67217F #7F3821
split-complementary
#397F21 #38217F #7F2168
monochromatic
#0D1E08 #234E14 #397F21 #4FB02E #6CD04A

Accessibility & contrast

On white

4.96
#397F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#397F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397F21
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397F21#FFFFFF#000000##FFFFFF
##397F211.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837411
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#327B6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #397f21;
/* rgb */ color: rgb(57, 127, 33);
/* oklch */ color: oklch(53.1% 0.146 139.0);
Tailwind
colors: {
  custom: {
    50: '#77a563',
    500: '#397f21',
    950: '#000000',
  },
}
SCSS
$custom: #397f21;
$custom-light: #77a563;
$custom-dark: #000000;
JSON
{
  "hex": "#397f21",
  "rgb": {
    "r": 57,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 104.681,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53141,
    "c": 0.14554,
    "h": 139
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#397F21
secondary
#974AB2
accent
#46E2BA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #397F21

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

Preview Lab → · Contrast checker → · Palette generator →

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