#398F21#398F21

#398F21 is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.6% C 0.166 H 139.9°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#398F21
RGBrgb(57, 143, 33)
HSLhsl(107, 63%, 35%)
HSVhsv(107, 77%, 56%)
CMYKcmyk(60.1%, 0%, 76.9%, 43.9%)
CIE-LABlab(52.53, -46.09, 47.52)
CIE-LCHlch(52.53, 66.20, 134.13°)
OKLaboklab(57.56% -0.1266 0.1067)
OKLCHoklch(57.56% 0.166 139.9)
XYZxyz(11.7838, 20.6235, 4.7983)
Luminance0.2062 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398F21 #77218F
analogous
#708F21 #398F21 #218F40
triadic
#398F21 #21398F #8F2139
tetradic
#398F21 #21708F #77218F #8F4021
square
#398F21 #21708F #77218F #8F4021
split-complementary
#398F21 #40218F #8F2170
monochromatic
#112C0A #255D16 #398F21 #4DC12C #70D753

Accessibility & contrast

On white

4.10
#398F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#398F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398F21
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398F21#FFFFFF#000000##000000
##398F211.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938209
Deuteranopia (green-blind)
#887B2D
Tritanopia (blue-blind)
#2E8A7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #398f21;
/* rgb */ color: rgb(57, 143, 33);
/* oklch */ color: oklch(57.6% 0.166 139.9);
Tailwind
colors: {
  custom: {
    50: '#7ab165',
    500: '#398f21',
    950: '#000000',
  },
}
SCSS
$custom: #398f21;
$custom-light: #7ab165;
$custom-dark: #000000;
JSON
{
  "hex": "#398f21",
  "rgb": {
    "r": 57,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 106.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57559,
    "c": 0.16557,
    "h": 139.9
  },
  "luminance": 0.20625
}

Semantic roles & 50–950 ramp

primary
#398F21
secondary
#A451BB
accent
#42E6C2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A

Preview Lab

Preview with #398F21

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

Preview Lab → · Contrast checker → · Palette generator →

#398F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva