#397312#397312

#397312 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.7% C 0.139 H 136.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#397312
RGBrgb(57, 115, 18)
HSLhsl(96, 73%, 26%)
HSVhsv(96, 84%, 45%)
CMYKcmyk(50.4%, 0%, 84.3%, 54.9%)
CIE-LABlab(43.02, -35.96, 43.46)
CIE-LCHlch(43.02, 56.41, 129.61°)
OKLaboklab(49.69% -0.1003 0.0959)
OKLCHoklch(49.69% 0.139 136.3)
XYZxyz(7.9270, 13.1745, 2.6974)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397312 #4C1273
analogous
#697312 #397312 #12731B
triadic
#397312 #123973 #731239
tetradic
#397312 #126973 #4C1273 #731B12
square
#397312 #126973 #4C1273 #731B12
split-complementary
#397312 #1B1273 #731269
monochromatic
#0D1A04 #1F3E0A #397312 #53A81A #6EDD23

Accessibility & contrast

On white

5.78
#397312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#397312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397312
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397312#FFFFFF#000000##FFFFFF
##3973121.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#366E61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #397312;
/* rgb */ color: rgb(57, 115, 18);
/* oklch */ color: oklch(49.7% 0.139 136.3);
Tailwind
colors: {
  custom: {
    50: '#769c5a',
    500: '#397312',
    950: '#000000',
  },
}
SCSS
$custom: #397312;
$custom-light: #769c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#397312",
  "rgb": {
    "r": 57,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 95.876,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.4969,
    "c": 0.13877,
    "h": 136.3
  },
  "luminance": 0.13175
}

Semantic roles & 50–950 ramp

primary
#397312
secondary
#7C37AA
accent
#38F0A6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397312

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

Preview Lab → · Contrast checker → · Palette generator →

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