#397012#397012

#397012 is a mid, vivid yellow-green. Relative luminance 0.125; OKLCH L 48.8% C 0.135 H 135.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#397012
RGBrgb(57, 112, 18)
HSLhsl(95, 72%, 25%)
HSVhsv(95, 84%, 44%)
CMYKcmyk(49.1%, 0%, 83.9%, 56.1%)
CIE-LABlab(42.00, -34.69, 42.52)
CIE-LCHlch(42.00, 54.88, 129.21°)
OKLaboklab(48.85% -0.0968 0.094)
OKLCHoklch(48.85% 0.135 135.9)
XYZxyz(7.5905, 12.5014, 2.5852)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397012 #491270
analogous
#687012 #397012 #12701A
triadic
#397012 #123970 #701239
tetradic
#397012 #126870 #491270 #701A12
square
#397012 #126870 #491270 #701A12
split-complementary
#397012 #1A1270 #701268
monochromatic
#0D1A04 #1E3B0A #397012 #54A51A #6FD923

Accessibility & contrast

On white

6.00
#397012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#397012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397012
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397012#FFFFFF#000000##FFFFFF
##3970121.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#376C5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #397012;
/* rgb */ color: rgb(57, 112, 18);
/* oklch */ color: oklch(48.8% 0.135 135.9);
Tailwind
colors: {
  custom: {
    50: '#769959',
    500: '#397012',
    950: '#000000',
  },
}
SCSS
$custom: #397012;
$custom-light: #769959;
$custom-dark: #000000;
JSON
{
  "hex": "#397012",
  "rgb": {
    "r": 57,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 95.106,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48849,
    "c": 0.13494,
    "h": 135.9
  },
  "luminance": 0.12502
}

Semantic roles & 50–950 ramp

primary
#397012
secondary
#7837A7
accent
#39EFA3
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397012

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

Preview Lab → · Contrast checker → · Palette generator →

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