#397A18#397A18

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

Color values

HEX#397A18
RGBrgb(57, 122, 24)
HSLhsl(100, 67%, 29%)
HSVhsv(100, 80%, 48%)
CMYKcmyk(53.3%, 0%, 80.3%, 52.2%)
CIE-LABlab(45.43, -38.51, 43.77)
CIE-LCHlch(45.43, 58.30, 131.34°)
OKLaboklab(51.68% -0.1067 0.0975)
OKLCHoklch(51.68% 0.145 137.6)
XYZxyz(8.8115, 14.8542, 3.2668)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397A18 #59187A
analogous
#6A7A18 #397A18 #187A28
triadic
#397A18 #18397A #7A1839
tetradic
#397A18 #186A7A #59187A #7A2818
square
#397A18 #186A7A #59187A #7A2818
split-complementary
#397A18 #28187A #7A186A
monochromatic
#0C1A05 #21470E #397A18 #51AD22 #6CD735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##397A18#FFFFFF#000000##FFFFFF
##397A181.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)
#766A23
Tritanopia (blue-blind)
#347568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397a18;
/* rgb */ color: rgb(57, 122, 24);
/* oklch */ color: oklch(51.7% 0.145 137.6);
Tailwind
colors: {
  custom: {
    50: '#77a15d',
    500: '#397a18',
    950: '#000000',
  },
}
SCSS
$custom: #397a18;
$custom-light: #77a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#397a18",
  "rgb": {
    "r": 57,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 99.796,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51683,
    "c": 0.14458,
    "h": 137.6
  },
  "luminance": 0.14855
}

Semantic roles & 50–950 ramp

primary
#397A18
secondary
#893FAF
accent
#3EEAB0
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #397A18

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

Preview Lab → · Contrast checker → · Palette generator →

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