#397212#397212

#397212 is a mid, vivid yellow-green. Relative luminance 0.129; OKLCH L 49.4% C 0.138 H 136.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#397212
RGBrgb(57, 114, 18)
HSLhsl(96, 73%, 26%)
HSVhsv(96, 84%, 45%)
CMYKcmyk(50%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.68, -35.54, 43.15)
CIE-LCHlch(42.68, 55.90, 129.48°)
OKLaboklab(49.41% -0.0991 0.0953)
OKLCHoklch(49.41% 0.138 136.1)
XYZxyz(7.8136, 12.9476, 2.6596)
Luminance0.1295 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397212 #4B1272
analogous
#697212 #397212 #12721B
triadic
#397212 #123972 #721239
tetradic
#397212 #126972 #4B1272 #721B12
square
#397212 #126972 #4B1272 #721B12
split-complementary
#397212 #1B1272 #721269
monochromatic
#0D1A04 #1F3D0A #397212 #53A71A #6EDC23

Accessibility & contrast

On white

5.85
#397212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#397212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397212
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397212#FFFFFF#000000##FFFFFF
##3972121.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6F631D
Tritanopia (blue-blind)
#366D61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #397212;
/* rgb */ color: rgb(57, 114, 18);
/* oklch */ color: oklch(49.4% 0.138 136.1);
Tailwind
colors: {
  custom: {
    50: '#769b5a',
    500: '#397212',
    950: '#000000',
  },
}
SCSS
$custom: #397212;
$custom-light: #769b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#397212",
  "rgb": {
    "r": 57,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 95.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.4941,
    "c": 0.1375,
    "h": 136.1
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#397212
secondary
#7B37A9
accent
#38EFA5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397212

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

Preview Lab → · Contrast checker → · Palette generator →

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