#397217#397217

#397217 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.4% C 0.135 H 136.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#397217
RGBrgb(57, 114, 23)
HSLhsl(98, 66%, 27%)
HSVhsv(98, 80%, 45%)
CMYKcmyk(50%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.71, -35.24, 41.51)
CIE-LCHlch(42.71, 54.45, 130.33°)
OKLaboklab(49.44% -0.098 0.0926)
OKLCHoklch(49.44% 0.135 136.6)
XYZxyz(7.8591, 12.9658, 2.8990)
Luminance0.1297 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397217 #501772
analogous
#677217 #397217 #177222
triadic
#397217 #173972 #721739
tetradic
#397217 #176772 #501772 #722217
square
#397217 #176772 #501772 #722217
split-complementary
#397217 #221772 #721767
monochromatic
#0D1905 #203F0D #397217 #52A521 #6DD52E

Accessibility & contrast

On white

5.84
#397217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#397217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397217
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397217#FFFFFF#000000##FFFFFF
##3972171.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766802
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#366E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #397217;
/* rgb */ color: rgb(57, 114, 23);
/* oklch */ color: oklch(49.4% 0.135 136.6);
Tailwind
colors: {
  custom: {
    50: '#769b5c',
    500: '#397217',
    950: '#000000',
  },
}
SCSS
$custom: #397217;
$custom-light: #769b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#397217",
  "rgb": {
    "r": 57,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 97.582,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49441,
    "c": 0.13485,
    "h": 136.6
  },
  "luminance": 0.12966
}

Semantic roles & 50–950 ramp

primary
#397217
secondary
#803DA8
accent
#3EE9A9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397217

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

Preview Lab → · Contrast checker → · Palette generator →

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