#397E12#397E12

#397E12 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.152 H 137.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#397E12
RGBrgb(57, 126, 18)
HSLhsl(98, 75%, 28%)
HSVhsv(98, 86%, 49%)
CMYKcmyk(54.8%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.76, -40.46, 46.86)
CIE-LCHlch(46.76, 61.91, 130.80°)
OKLaboklab(52.76% -0.1123 0.1031)
OKLCHoklch(52.76% 0.152 137.4)
XYZxyz(9.2571, 15.8345, 3.1407)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397E12 #57127E
analogous
#6F7E12 #397E12 #127E21
triadic
#397E12 #12397E #7E1239
tetradic
#397E12 #126F7E #57127E #7E2112
square
#397E12 #126F7E #57127E #7E2112
split-complementary
#397E12 #21127E #7E126F
monochromatic
#0C1B04 #21480A #397E12 #51B41A #6CE12A

Accessibility & contrast

On white

5.04
#397E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#397E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397E12
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397E12#FFFFFF#000000##FFFFFF
##397E121.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#34796B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #397e12;
/* rgb */ color: rgb(57, 126, 18);
/* oklch */ color: oklch(52.8% 0.152 137.4);
Tailwind
colors: {
  custom: {
    50: '#78a45c',
    500: '#397e12',
    950: '#000000',
  },
}
SCSS
$custom: #397e12;
$custom-light: #78a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#397e12",
  "rgb": {
    "r": 57,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 98.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52763,
    "c": 0.15245,
    "h": 137.4
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#397E12
secondary
#8738B4
accent
#36F2AE
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #397E12

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

Preview Lab → · Contrast checker → · Palette generator →

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