#397118#397118

#397118 is a mid, vivid yellow-green. Relative luminance 0.127; OKLCH L 49.2% C 0.133 H 136.6°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#397118
RGBrgb(57, 113, 24)
HSLhsl(98, 65%, 27%)
HSVhsv(98, 79%, 44%)
CMYKcmyk(49.6%, 0%, 78.8%, 55.7%)
CIE-LABlab(42.38, -34.74, 40.82)
CIE-LCHlch(42.38, 53.60, 130.40°)
OKLaboklab(49.17% -0.0966 0.0914)
OKLCHoklch(49.17% 0.133 136.6)
XYZxyz(7.7571, 12.7455, 2.9154)
Luminance0.1275 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397118 #501871
analogous
#667118 #397118 #187124
triadic
#397118 #183971 #711839
tetradic
#397118 #186671 #501871 #712418
square
#397118 #186671 #501871 #712418
split-complementary
#397118 #241871 #711866
monochromatic
#0D1905 #203F0D #397118 #52A323 #6DD330

Accessibility & contrast

On white

5.92
#397118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#397118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397118
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397118#FFFFFF#000000##FFFFFF
##3971181.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6E6221
Tritanopia (blue-blind)
#366D60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #397118;
/* rgb */ color: rgb(57, 113, 24);
/* oklch */ color: oklch(49.2% 0.133 136.6);
Tailwind
colors: {
  custom: {
    50: '#759a5c',
    500: '#397118',
    950: '#000000',
  },
}
SCSS
$custom: #397118;
$custom-light: #759a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#397118",
  "rgb": {
    "r": 57,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 97.753,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.49168,
    "c": 0.13295,
    "h": 136.6
  },
  "luminance": 0.12746
}

Semantic roles & 50–950 ramp

primary
#397118
secondary
#803EA6
accent
#40E8AA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397118

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

Preview Lab → · Contrast checker → · Palette generator →

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