#397B12#397B12

#397B12 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 51.9% C 0.149 H 137.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#397B12
RGBrgb(57, 123, 18)
HSLhsl(98, 74%, 28%)
HSVhsv(98, 85%, 48%)
CMYKcmyk(53.7%, 0%, 85.4%, 51.8%)
CIE-LABlab(45.74, -39.26, 45.95)
CIE-LCHlch(45.74, 60.43, 130.51°)
OKLaboklab(51.93% -0.1091 0.1012)
OKLCHoklch(51.93% 0.149 137.2)
XYZxyz(8.8792, 15.0788, 3.0148)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B12 #54127B
analogous
#6E7B12 #397B12 #127B1F
triadic
#397B12 #12397B #7B1239
tetradic
#397B12 #126E7B #54127B #7B1F12
square
#397B12 #126E7B #54127B #7B1F12
split-complementary
#397B12 #1F127B #7B126E
monochromatic
#0C1B04 #20460A #397B12 #52B01A #6CE028

Accessibility & contrast

On white

5.23
#397B12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#397B12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397B12
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397B12#FFFFFF#000000##FFFFFF
##397B121.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#776A1F
Tritanopia (blue-blind)
#357668
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397b12;
/* rgb */ color: rgb(57, 123, 18);
/* oklch */ color: oklch(51.9% 0.149 137.2);
Tailwind
colors: {
  custom: {
    50: '#77a25b',
    500: '#397b12',
    950: '#000000',
  },
}
SCSS
$custom: #397b12;
$custom-light: #77a25b;
$custom-dark: #000000;
JSON
{
  "hex": "#397b12",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 18
  },
  "hsl": {
    "h": 97.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.14877,
    "h": 137.2
  },
  "luminance": 0.15079
}

Semantic roles & 50–950 ramp

primary
#397B12
secondary
#8438B1
accent
#37F1AC
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #397B12

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

Preview Lab → · Contrast checker → · Palette generator →

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