#397B16#397B16

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

Color values

HEX#397B16
RGBrgb(57, 123, 22)
HSLhsl(99, 70%, 28%)
HSVhsv(99, 82%, 48%)
CMYKcmyk(53.7%, 0%, 82.1%, 51.8%)
CIE-LABlab(45.76, -39.04, 44.75)
CIE-LCHlch(45.76, 59.38, 131.10°)
OKLaboklab(51.95% -0.1083 0.0993)
OKLCHoklch(51.95% 0.147 137.5)
XYZxyz(8.9148, 15.0930, 3.2024)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B16 #58167B
analogous
#6B7B16 #397B16 #167B25
triadic
#397B16 #16397B #7B1639
tetradic
#397B16 #166B7B #58167B #7B2516
square
#397B16 #166B7B #58167B #7B2516
split-complementary
#397B16 #25167B #7B166B
monochromatic
#0C1A05 #21470D #397B16 #51AF1F #6CDA31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #397b16;
/* rgb */ color: rgb(57, 123, 22);
/* oklch */ color: oklch(51.9% 0.147 137.5);
Tailwind
colors: {
  custom: {
    50: '#77a25d',
    500: '#397b16',
    950: '#000000',
  },
}
SCSS
$custom: #397b16;
$custom-light: #77a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#397b16",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 99.208,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.14689,
    "h": 137.5
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#397B16
secondary
#883DB0
accent
#3BECAF
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F04
muted
#7B7F79

Preview Lab

Preview with #397B16

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

Preview Lab → · Contrast checker → · Palette generator →

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