#397C12#397C12

#397C12 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.2% C 0.150 H 137.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#397C12
RGBrgb(57, 124, 18)
HSLhsl(98, 75%, 28%)
HSVhsv(98, 85%, 49%)
CMYKcmyk(54%, 0%, 85.5%, 51.4%)
CIE-LABlab(46.08, -39.66, 46.25)
CIE-LCHlch(46.08, 60.93, 130.61°)
OKLaboklab(52.21% -0.1102 0.1018)
OKLCHoklch(52.21% 0.15 137.3)
XYZxyz(9.0039, 15.3282, 3.0563)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397C12 #55127C
analogous
#6E7C12 #397C12 #127C20
triadic
#397C12 #12397C #7C1239
tetradic
#397C12 #126E7C #55127C #7C2012
square
#397C12 #126E7C #55127C #7C2012
split-complementary
#397C12 #20127C #7C126E
monochromatic
#0C1B04 #20470A #397C12 #52B11A #6CE029

Accessibility & contrast

On white

5.17
#397C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#397C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397C12
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397C12#FFFFFF#000000##FFFFFF
##397C121.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#347769
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #397c12;
/* rgb */ color: rgb(57, 124, 18);
/* oklch */ color: oklch(52.2% 0.150 137.3);
Tailwind
colors: {
  custom: {
    50: '#77a25b',
    500: '#397c12',
    950: '#000000',
  },
}
SCSS
$custom: #397c12;
$custom-light: #77a25b;
$custom-dark: #000000;
JSON
{
  "hex": "#397c12",
  "rgb": {
    "r": 57,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 97.925,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52206,
    "c": 0.15,
    "h": 137.3
  },
  "luminance": 0.15329
}

Semantic roles & 50–950 ramp

primary
#397C12
secondary
#8538B2
accent
#37F1AD
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #397C12

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

Preview Lab → · Contrast checker → · Palette generator →

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