#397B17#397B17

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

Color values

HEX#397B17
RGBrgb(57, 123, 23)
HSLhsl(100, 68%, 29%)
HSVhsv(100, 81%, 48%)
CMYKcmyk(53.7%, 0%, 81.3%, 51.8%)
CIE-LABlab(45.77, -38.98, 44.43)
CIE-LCHlch(45.77, 59.10, 131.26°)
OKLaboklab(51.96% -0.108 0.0988)
OKLCHoklch(51.96% 0.146 137.6)
XYZxyz(8.9247, 15.0970, 3.2542)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B17 #59177B
analogous
#6B7B17 #397B17 #177B27
triadic
#397B17 #17397B #7B1739
tetradic
#397B17 #176B7B #59177B #7B2717
square
#397B17 #176B7B #59177B #7B2717
split-complementary
#397B17 #27177B #7B176B
monochromatic
#0C1A05 #21470D #397B17 #51AF21 #6CD933

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##397B17#FFFFFF#000000##FFFFFF
##397B171.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)
#776A22
Tritanopia (blue-blind)
#347668
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397b17;
/* rgb */ color: rgb(57, 123, 23);
/* oklch */ color: oklch(52.0% 0.146 137.6);
Tailwind
colors: {
  custom: {
    50: '#77a25d',
    500: '#397b17',
    950: '#000000',
  },
}
SCSS
$custom: #397b17;
$custom-light: #77a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#397b17",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 99.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51955,
    "c": 0.14637,
    "h": 137.6
  },
  "luminance": 0.15098
}

Semantic roles & 50–950 ramp

primary
#397B17
secondary
#893EB0
accent
#3CEBB0
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #397B17

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

Preview Lab → · Contrast checker → · Palette generator →

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