#398D21#398D21

#398D21 is a mid, vivid green. Relative luminance 0.200; OKLCH L 57.0% C 0.163 H 139.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#398D21
RGBrgb(57, 141, 33)
HSLhsl(107, 62%, 34%)
HSVhsv(107, 77%, 55%)
CMYKcmyk(59.6%, 0%, 76.6%, 44.7%)
CIE-LABlab(51.87, -45.34, 46.86)
CIE-LCHlch(51.87, 65.21, 134.05°)
OKLaboklab(57.01% -0.1246 0.1053)
OKLCHoklch(57.01% 0.163 139.8)
XYZxyz(11.4862, 20.0284, 4.6991)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D21 #75218D
analogous
#6F8D21 #398D21 #218D3F
triadic
#398D21 #21398D #8D2139
tetradic
#398D21 #216F8D #75218D #8D3F21
square
#398D21 #216F8D #75218D #8D3F21
split-complementary
#398D21 #3F218D #8D216F
monochromatic
#112A0A #255B15 #398D21 #4DBF2D #6FD652

Accessibility & contrast

On white

4.20
#398D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#398D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398D21
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398D21#FFFFFF#000000##000000
##398D211.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#2F8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398d21;
/* rgb */ color: rgb(57, 141, 33);
/* oklch */ color: oklch(57.0% 0.163 139.8);
Tailwind
colors: {
  custom: {
    50: '#7aaf64',
    500: '#398d21',
    950: '#000000',
  },
}
SCSS
$custom: #398d21;
$custom-light: #7aaf64;
$custom-dark: #000000;
JSON
{
  "hex": "#398d21",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 106.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.16313,
    "h": 139.8
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

primary
#398D21
secondary
#A250BA
accent
#43E5C1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #398D21

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

Preview Lab → · Contrast checker → · Palette generator →

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