#397B15#397B15

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

Color values

HEX#397B15
RGBrgb(57, 123, 21)
HSLhsl(99, 71%, 28%)
HSVhsv(99, 83%, 48%)
CMYKcmyk(53.7%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.76, -39.10, 45.06)
CIE-LCHlch(45.76, 59.66, 130.94°)
OKLaboklab(51.94% -0.1085 0.0998)
OKLCHoklch(51.94% 0.147 137.4)
XYZxyz(8.9054, 15.0893, 3.1526)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B15 #57157B
analogous
#6C7B15 #397B15 #157B24
triadic
#397B15 #15397B #7B1539
tetradic
#397B15 #156C7B #57157B #7B2415
square
#397B15 #156C7B #57157B #7B2415
split-complementary
#397B15 #24157B #7B156C
monochromatic
#0C1A04 #21470C #397B15 #51AF1E #6CDB2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##397B15#FFFFFF#000000##FFFFFF
##397B151.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)
#776A21
Tritanopia (blue-blind)
#347668
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397b15;
/* rgb */ color: rgb(57, 123, 21);
/* oklch */ color: oklch(51.9% 0.147 137.4);
Tailwind
colors: {
  custom: {
    50: '#77a25c',
    500: '#397b15',
    950: '#000000',
  },
}
SCSS
$custom: #397b15;
$custom-light: #77a25c;
$custom-dark: #000000;
JSON
{
  "hex": "#397b15",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 98.824,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51943,
    "c": 0.14738,
    "h": 137.4
  },
  "luminance": 0.1509
}

Semantic roles & 50–950 ramp

primary
#397B15
secondary
#873BB0
accent
#3AEEAE
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #397B15

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

Preview Lab → · Contrast checker → · Palette generator →

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