#397917#397917

#397917 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.4% C 0.144 H 137.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#397917
RGBrgb(57, 121, 23)
HSLhsl(99, 68%, 28%)
HSVhsv(99, 81%, 47%)
CMYKcmyk(52.9%, 0%, 81%, 52.5%)
CIE-LABlab(45.09, -38.16, 43.79)
CIE-LCHlch(45.09, 58.08, 131.07°)
OKLaboklab(51.4% -0.1058 0.0974)
OKLCHoklch(51.4% 0.144 137.4)
XYZxyz(8.6791, 14.6058, 3.1723)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397917 #571779
analogous
#6A7917 #397917 #177926
triadic
#397917 #173979 #791739
tetradic
#397917 #176A79 #571779 #792617
square
#397917 #176A79 #571779 #792617
split-complementary
#397917 #261779 #79176A
monochromatic
#0C1A05 #21460D #397917 #51AC21 #6CD832

Accessibility & contrast

On white

5.36
#397917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#397917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397917
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397917#FFFFFF#000000##FFFFFF
##3979171.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#357467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #397917;
/* rgb */ color: rgb(57, 121, 23);
/* oklch */ color: oklch(51.4% 0.144 137.4);
Tailwind
colors: {
  custom: {
    50: '#77a05d',
    500: '#397917',
    950: '#000000',
  },
}
SCSS
$custom: #397917;
$custom-light: #77a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#397917",
  "rgb": {
    "r": 57,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 99.184,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51398,
    "c": 0.14385,
    "h": 137.4
  },
  "luminance": 0.14606
}

Semantic roles & 50–950 ramp

primary
#397917
secondary
#873EAE
accent
#3DEBAF
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F04
muted
#7B7E79

Preview Lab

Preview with #397917

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

Preview Lab → · Contrast checker → · Palette generator →

#397917 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva