#397412#397412

#397412 is a mid, vivid yellow-green. Relative luminance 0.134; OKLCH L 50.0% C 0.140 H 136.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#397412
RGBrgb(57, 116, 18)
HSLhsl(96, 73%, 26%)
HSVhsv(96, 84%, 45%)
CMYKcmyk(50.9%, 0%, 84.5%, 54.5%)
CIE-LABlab(43.37, -36.38, 43.78)
CIE-LCHlch(43.37, 56.92, 129.73°)
OKLaboklab(49.97% -0.1014 0.0966)
OKLCHoklch(49.97% 0.14 136.4)
XYZxyz(8.0417, 13.4038, 2.7356)
Luminance0.1340 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397412 #4D1274
analogous
#6A7412 #397412 #12741C
triadic
#397412 #123974 #741239
tetradic
#397412 #126A74 #4D1274 #741C12
square
#397412 #126A74 #4D1274 #741C12
split-complementary
#397412 #1C1274 #74126A
monochromatic
#0D1A04 #1F3F0A #397412 #53A91A #6DDD23

Accessibility & contrast

On white

5.71
#397412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#397412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397412
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397412#FFFFFF#000000##FFFFFF
##3974121.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#71651E
Tritanopia (blue-blind)
#366F62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #397412;
/* rgb */ color: rgb(57, 116, 18);
/* oklch */ color: oklch(50.0% 0.140 136.4);
Tailwind
colors: {
  custom: {
    50: '#769c5a',
    500: '#397412',
    950: '#000000',
  },
}
SCSS
$custom: #397412;
$custom-light: #769c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#397412",
  "rgb": {
    "r": 57,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 96.122,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.4997,
    "c": 0.14004,
    "h": 136.4
  },
  "luminance": 0.13404
}

Semantic roles & 50–950 ramp

primary
#397412
secondary
#7D37AB
accent
#38F0A7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397412

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

Preview Lab → · Contrast checker → · Palette generator →

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