#397417#397417

#397417 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.0% C 0.137 H 136.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#397417
RGBrgb(57, 116, 23)
HSLhsl(98, 67%, 27%)
HSVhsv(98, 80%, 45%)
CMYKcmyk(50.9%, 0%, 80.2%, 54.5%)
CIE-LABlab(43.39, -36.09, 42.16)
CIE-LCHlch(43.39, 55.50, 130.56°)
OKLaboklab(50% -0.1003 0.094)
OKLCHoklch(50% 0.137 136.8)
XYZxyz(8.0871, 13.4219, 2.9750)
Luminance0.1342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397417 #521774
analogous
#677417 #397417 #177424
triadic
#397417 #173974 #741739
tetradic
#397417 #176774 #521774 #742417
square
#397417 #176774 #521774 #742417
split-complementary
#397417 #241774 #741767
monochromatic
#0D1A05 #20410D #397417 #52A721 #6CD630

Accessibility & contrast

On white

5.70
#397417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#397417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397417
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397417#FFFFFF#000000##FFFFFF
##3974171.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A01
Deuteranopia (green-blind)
#706521
Tritanopia (blue-blind)
#367063
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #397417;
/* rgb */ color: rgb(57, 116, 23);
/* oklch */ color: oklch(50.0% 0.137 136.8);
Tailwind
colors: {
  custom: {
    50: '#769c5c',
    500: '#397417',
    950: '#000000',
  },
}
SCSS
$custom: #397417;
$custom-light: #769c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#397417",
  "rgb": {
    "r": 57,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 98.065,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50001,
    "c": 0.13745,
    "h": 136.8
  },
  "luminance": 0.13423
}

Semantic roles & 50–950 ramp

primary
#397417
secondary
#823DA9
accent
#3EEAAB
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397417

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

Preview Lab → · Contrast checker → · Palette generator →

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