#397816#397816

#397816 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.1% C 0.143 H 137.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#397816
RGBrgb(57, 120, 22)
HSLhsl(99, 69%, 28%)
HSVhsv(99, 82%, 47%)
CMYKcmyk(52.5%, 0%, 81.7%, 52.9%)
CIE-LABlab(44.74, -37.81, 43.79)
CIE-LCHlch(44.74, 57.86, 130.81°)
OKLaboklab(51.11% -0.105 0.0973)
OKLCHoklch(51.11% 0.143 137.2)
XYZxyz(8.5484, 14.3601, 3.0802)
Luminance0.1436 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397816 #551678
analogous
#6A7816 #397816 #167824
triadic
#397816 #163978 #781639
tetradic
#397816 #166A78 #551678 #782416
square
#397816 #166A78 #551678 #782416
split-complementary
#397816 #241678 #78166A
monochromatic
#0C1A05 #20440D #397816 #52AC1F #6CD92F

Accessibility & contrast

On white

5.42
#397816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#397816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397816
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397816#FFFFFF#000000##FFFFFF
##3978161.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#357366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #397816;
/* rgb */ color: rgb(57, 120, 22);
/* oklch */ color: oklch(51.1% 0.143 137.2);
Tailwind
colors: {
  custom: {
    50: '#779f5c',
    500: '#397816',
    950: '#000000',
  },
}
SCSS
$custom: #397816;
$custom-light: #779f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#397816",
  "rgb": {
    "r": 57,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 98.571,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.14312,
    "h": 137.2
  },
  "luminance": 0.14361
}

Semantic roles & 50–950 ramp

primary
#397816
secondary
#853CAD
accent
#3CECAD
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397816

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

Preview Lab → · Contrast checker → · Palette generator →

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