#398227#398227

#398227 is a mid, vivid green. Relative luminance 0.170; OKLCH L 54.0% C 0.145 H 140.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#398227
RGBrgb(57, 130, 39)
HSLhsl(108, 54%, 33%)
HSVhsv(108, 70%, 51%)
CMYKcmyk(56.2%, 0%, 70%, 49%)
CIE-LABlab(48.24, -40.55, 40.75)
CIE-LCHlch(48.24, 57.49, 134.86°)
OKLaboklab(54.03% -0.1113 0.0934)
OKLCHoklch(54.03% 0.145 140)
XYZxyz(10.0358, 16.9808, 4.6678)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398227 #702782
analogous
#668227 #398227 #278242
triadic
#398227 #273982 #822739
tetradic
#398227 #276682 #702782 #824227
square
#398227 #276682 #702782 #824227
split-complementary
#398227 #422782 #822766
monochromatic
#10240B #245319 #398227 #4EB135 #6ECD57

Accessibility & contrast

On white

4.78
#398227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#398227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398227
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398227#FFFFFF#000000##FFFFFF
##3982271.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86761A
Deuteranopia (green-blind)
#7C702F
Tritanopia (blue-blind)
#317E70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #398227;
/* rgb */ color: rgb(57, 130, 39);
/* oklch */ color: oklch(54.0% 0.145 140.0);
Tailwind
colors: {
  custom: {
    50: '#77a766',
    500: '#398227',
    950: '#000000',
  },
}
SCSS
$custom: #398227;
$custom-light: #77a766;
$custom-dark: #000000;
JSON
{
  "hex": "#398227",
  "rgb": {
    "r": 57,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 108.132,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.54025,
    "c": 0.14526,
    "h": 140
  },
  "luminance": 0.16982
}

Semantic roles & 50–950 ramp

primary
#398227
secondary
#9F53B1
accent
#4BDDC0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #398227

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

Preview Lab → · Contrast checker → · Palette generator →

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