#397018#397018

#397018 is a mid, vivid yellow-green. Relative luminance 0.125; OKLCH L 48.9% C 0.132 H 136.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#397018
RGBrgb(57, 112, 24)
HSLhsl(98, 65%, 27%)
HSVhsv(98, 79%, 44%)
CMYKcmyk(49.1%, 0%, 78.6%, 56.1%)
CIE-LABlab(42.04, -34.31, 40.48)
CIE-LCHlch(42.04, 53.07, 130.28°)
OKLaboklab(48.89% -0.0954 0.0907)
OKLCHoklch(48.89% 0.132 136.5)
XYZxyz(7.6462, 12.5236, 2.8784)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397018 #4F1870
analogous
#657018 #397018 #187023
triadic
#397018 #183970 #701839
tetradic
#397018 #186570 #4F1870 #702318
square
#397018 #186570 #4F1870 #702318
split-complementary
#397018 #231870 #701865
monochromatic
#0D1905 #1F3E0D #397018 #53A223 #6DD330

Accessibility & contrast

On white

5.99
#397018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #397018
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397018#FFFFFF#000000##FFFFFF
##3970181.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#6D6221
Tritanopia (blue-blind)
#366C5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #397018;
/* rgb */ color: rgb(57, 112, 24);
/* oklch */ color: oklch(48.9% 0.132 136.5);
Tailwind
colors: {
  custom: {
    50: '#75995c',
    500: '#397018',
    950: '#000000',
  },
}
SCSS
$custom: #397018;
$custom-light: #75995c;
$custom-dark: #000000;
JSON
{
  "hex": "#397018",
  "rgb": {
    "r": 57,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 97.5,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.13164,
    "h": 136.5
  },
  "luminance": 0.12524
}

Semantic roles & 50–950 ramp

primary
#397018
secondary
#7F3EA5
accent
#40E8A9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #397018

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

Preview Lab → · Contrast checker → · Palette generator →

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