#397B18#397B18

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

Color values

HEX#397B18
RGBrgb(57, 123, 24)
HSLhsl(100, 67%, 29%)
HSVhsv(100, 80%, 48%)
CMYKcmyk(53.7%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.77, -38.91, 44.10)
CIE-LCHlch(45.77, 58.81, 131.43°)
OKLaboklab(51.96% -0.1078 0.0982)
OKLCHoklch(51.96% 0.146 137.7)
XYZxyz(8.9349, 15.1011, 3.3079)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B18 #5A187B
analogous
#6B7B18 #397B18 #187B29
triadic
#397B18 #18397B #7B1839
tetradic
#397B18 #186B7B #5A187B #7B2918
square
#397B18 #186B7B #5A187B #7B2918
split-complementary
#397B18 #29187B #7B186B
monochromatic
#0C1A05 #21480E #397B18 #51AE22 #6CD836

Accessibility & contrast

On white

5.22
#397B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#397B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397B18
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397B18#FFFFFF#000000##FFFFFF
##397B181.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#776A23
Tritanopia (blue-blind)
#347669
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397b18;
/* rgb */ color: rgb(57, 123, 24);
/* oklch */ color: oklch(52.0% 0.146 137.7);
Tailwind
colors: {
  custom: {
    50: '#77a25e',
    500: '#397b18',
    950: '#000000',
  },
}
SCSS
$custom: #397b18;
$custom-light: #77a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#397b18",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 100,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.14584,
    "h": 137.7
  },
  "luminance": 0.15102
}

Semantic roles & 50–950 ramp

primary
#397B18
secondary
#8A3FB0
accent
#3EEAB1
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #397B18

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

Preview Lab → · Contrast checker → · Palette generator →

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