#397228#397228

#397228 is a mid, vivid green. Relative luminance 0.131; OKLCH L 49.6% C 0.123 H 139.2°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#397228
RGBrgb(57, 114, 40)
HSLhsl(106, 48%, 30%)
HSVhsv(106, 65%, 45%)
CMYKcmyk(50%, 0%, 64.9%, 55.3%)
CIE-LABlab(42.85, -33.74, 34.42)
CIE-LCHlch(42.85, 48.20, 134.43°)
OKLaboklab(49.6% -0.0927 0.0801)
OKLCHoklch(49.6% 0.123 139.2)
XYZxyz(8.0874, 13.0571, 4.1012)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397228 #612872
analogous
#5E7228 #397228 #28723C
triadic
#397228 #283972 #722839
tetradic
#397228 #285E72 #612872 #723C28
square
#397228 #285E72 #612872 #723C28
split-complementary
#397228 #3C2872 #72285E
monochromatic
#0C1708 #224518 #397228 #509F38 #6CC252

Accessibility & contrast

On white

5.81
#397228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#397228 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397228
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397228#FFFFFF#000000##FFFFFF
##3972281.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75681F
Deuteranopia (green-blind)
#6E632E
Tritanopia (blue-blind)
#346E62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #397228;
/* rgb */ color: rgb(57, 114, 40);
/* oklch */ color: oklch(49.6% 0.123 139.2);
Tailwind
colors: {
  custom: {
    50: '#759b65',
    500: '#397228',
    950: '#000000',
  },
}
SCSS
$custom: #397228;
$custom-light: #759b65;
$custom-dark: #000000;
JSON
{
  "hex": "#397228",
  "rgb": {
    "r": 57,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 106.216,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.49598,
    "c": 0.12254,
    "h": 139.2
  },
  "luminance": 0.13058
}

Semantic roles & 50–950 ramp

primary
#397228
secondary
#9152A4
accent
#50D8B9
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #397228

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

Preview Lab → · Contrast checker → · Palette generator →

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