#397918#397918

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

Color values

HEX#397918
RGBrgb(57, 121, 24)
HSLhsl(100, 67%, 28%)
HSVhsv(100, 80%, 47%)
CMYKcmyk(52.9%, 0%, 80.2%, 52.5%)
CIE-LABlab(45.10, -38.10, 43.45)
CIE-LCHlch(45.10, 57.79, 131.25°)
OKLaboklab(51.4% -0.1056 0.0969)
OKLCHoklch(51.4% 0.143 137.5)
XYZxyz(8.6893, 14.6099, 3.2261)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397918 #581879
analogous
#697918 #397918 #187927
triadic
#397918 #183979 #791839
tetradic
#397918 #186979 #581879 #792718
square
#397918 #186979 #581879 #792718
split-complementary
#397918 #271879 #791869
monochromatic
#0C1A05 #21460E #397918 #51AC22 #6CD735

Accessibility & contrast

On white

5.35
#397918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #397918
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397918#FFFFFF#000000##FFFFFF
##3979181.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #397918;
/* rgb */ color: rgb(57, 121, 24);
/* oklch */ color: oklch(51.4% 0.143 137.5);
Tailwind
colors: {
  custom: {
    50: '#77a05d',
    500: '#397918',
    950: '#000000',
  },
}
SCSS
$custom: #397918;
$custom-light: #77a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#397918",
  "rgb": {
    "r": 57,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 99.588,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51404,
    "c": 0.14331,
    "h": 137.5
  },
  "luminance": 0.14611
}

Semantic roles & 50–950 ramp

primary
#397918
secondary
#883FAE
accent
#3EEAAF
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #397918

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

Preview Lab → · Contrast checker → · Palette generator →

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