#397A17#397A17

#397A17 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.7% C 0.145 H 137.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#397A17
RGBrgb(57, 122, 23)
HSLhsl(99, 68%, 28%)
HSVhsv(99, 81%, 48%)
CMYKcmyk(53.3%, 0%, 81.1%, 52.2%)
CIE-LABlab(45.43, -38.57, 44.11)
CIE-LCHlch(45.43, 58.59, 131.17°)
OKLaboklab(51.68% -0.1069 0.0981)
OKLCHoklch(51.68% 0.145 137.5)
XYZxyz(8.8012, 14.8501, 3.2130)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397A17 #58177A
analogous
#6A7A17 #397A17 #177A26
triadic
#397A17 #17397A #7A1739
tetradic
#397A17 #176A7A #58177A #7A2617
square
#397A17 #176A7A #58177A #7A2617
split-complementary
#397A17 #26177A #7A176A
monochromatic
#0C1A05 #21470D #397A17 #51AD21 #6CD933

Accessibility & contrast

On white

5.29
#397A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#397A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397A17
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397A17#FFFFFF#000000##FFFFFF
##397A171.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#766A22
Tritanopia (blue-blind)
#347568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397a17;
/* rgb */ color: rgb(57, 122, 23);
/* oklch */ color: oklch(51.7% 0.145 137.5);
Tailwind
colors: {
  custom: {
    50: '#77a15d',
    500: '#397a17',
    950: '#000000',
  },
}
SCSS
$custom: #397a17;
$custom-light: #77a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#397a17",
  "rgb": {
    "r": 57,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 99.394,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51676,
    "c": 0.14511,
    "h": 137.5
  },
  "luminance": 0.14851
}

Semantic roles & 50–950 ramp

primary
#397A17
secondary
#883EAF
accent
#3DEBAF
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #397A17

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

Preview Lab → · Contrast checker → · Palette generator →

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