#397F12#397F12

#397F12 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.0% C 0.154 H 137.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#397F12
RGBrgb(57, 127, 18)
HSLhsl(99, 75%, 28%)
HSVhsv(99, 86%, 50%)
CMYKcmyk(55.1%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.09, -40.85, 47.17)
CIE-LCHlch(47.09, 62.40, 130.90°)
OKLaboklab(53.04% -0.1134 0.1037)
OKLCHoklch(53.04% 0.154 137.5)
XYZxyz(9.3856, 16.0915, 3.1835)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397F12 #58127F
analogous
#6F7F12 #397F12 #127F21
triadic
#397F12 #12397F #7F1239
tetradic
#397F12 #126F7F #58127F #7F2112
square
#397F12 #126F7F #58127F #7F2112
split-complementary
#397F12 #21127F #7F126F
monochromatic
#0C1B04 #21490A #397F12 #51B51A #6CE12B

Accessibility & contrast

On white

4.98
#397F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#397F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397F12
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397F12#FFFFFF#000000##FFFFFF
##397F121.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7A6E20
Tritanopia (blue-blind)
#347A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #397f12;
/* rgb */ color: rgb(57, 127, 18);
/* oklch */ color: oklch(53.0% 0.154 137.5);
Tailwind
colors: {
  custom: {
    50: '#78a55c',
    500: '#397f12',
    950: '#000000',
  },
}
SCSS
$custom: #397f12;
$custom-light: #78a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#397f12",
  "rgb": {
    "r": 57,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 98.532,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53042,
    "c": 0.15366,
    "h": 137.5
  },
  "luminance": 0.16092
}

Semantic roles & 50–950 ramp

primary
#397F12
secondary
#8838B5
accent
#36F2AF
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #397F12

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

Preview Lab → · Contrast checker → · Palette generator →

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