#397A12#397A12

#397A12 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.6% C 0.148 H 137.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#397A12
RGBrgb(57, 122, 18)
HSLhsl(98, 74%, 27%)
HSVhsv(98, 85%, 48%)
CMYKcmyk(53.3%, 0%, 85.2%, 52.2%)
CIE-LABlab(45.40, -38.85, 45.64)
CIE-LCHlch(45.40, 59.94, 130.41°)
OKLaboklab(51.65% -0.108 0.1005)
OKLCHoklch(51.65% 0.148 137.1)
XYZxyz(8.7558, 14.8319, 2.9736)
Luminance0.1483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397A12 #53127A
analogous
#6D7A12 #397A12 #127A1F
triadic
#397A12 #12397A #7A1239
tetradic
#397A12 #126D7A #53127A #7A1F12
square
#397A12 #126D7A #53127A #7A1F12
split-complementary
#397A12 #1F127A #7A126D
monochromatic
#0C1B04 #20450A #397A12 #52AF1A #6CDF27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##397A12#FFFFFF#000000##FFFFFF
##397A121.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)
#76691F
Tritanopia (blue-blind)
#357567
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #397a12;
/* rgb */ color: rgb(57, 122, 18);
/* oklch */ color: oklch(51.6% 0.148 137.1);
Tailwind
colors: {
  custom: {
    50: '#77a15b',
    500: '#397a12',
    950: '#000000',
  },
}
SCSS
$custom: #397a12;
$custom-light: #77a15b;
$custom-dark: #000000;
JSON
{
  "hex": "#397a12",
  "rgb": {
    "r": 57,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 97.5,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.51648,
    "c": 0.14754,
    "h": 137.1
  },
  "luminance": 0.14833
}

Semantic roles & 50–950 ramp

primary
#397A12
secondary
#8338B0
accent
#37F1AB
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #397A12

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

Preview Lab → · Contrast checker → · Palette generator →

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