#398231#398231

#398231 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.137 H 141.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#398231
RGBrgb(57, 130, 49)
HSLhsl(114, 45%, 35%)
HSVhsv(114, 62%, 51%)
CMYKcmyk(56.2%, 0%, 62.3%, 49%)
CIE-LABlab(48.33, -39.50, 36.28)
CIE-LCHlch(48.33, 53.63, 137.43°)
OKLaboklab(54.13% -0.1078 0.0851)
OKLCHoklch(54.13% 0.137 141.7)
XYZxyz(10.2239, 17.0560, 5.6585)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398231 #7A3182
analogous
#618231 #398231 #318251
triadic
#398231 #313982 #823139
tetradic
#398231 #316182 #7A3182 #825131
square
#398231 #316182 #7A3182 #825131
split-complementary
#398231 #513182 #823161
monochromatic
#12290F #265620 #398231 #4CAE42 #71C668

Accessibility & contrast

On white

4.76
#398231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#398231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398231
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398231#FFFFFF#000000##FFFFFF
##3982311.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857728
Deuteranopia (green-blind)
#7C7037
Tritanopia (blue-blind)
#2F7E71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #398231;
/* rgb */ color: rgb(57, 130, 49);
/* oklch */ color: oklch(54.1% 0.137 141.7);
Tailwind
colors: {
  custom: {
    50: '#77a76c',
    500: '#398231',
    950: '#000000',
  },
}
SCSS
$custom: #398231;
$custom-light: #77a76c;
$custom-dark: #000000;
JSON
{
  "hex": "#398231",
  "rgb": {
    "r": 57,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 114.074,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.54134,
    "c": 0.13729,
    "h": 141.7
  },
  "luminance": 0.17057
}

Semantic roles & 50–950 ramp

primary
#398231
secondary
#A662AD
accent
#53D5C8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #398231

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

Preview Lab → · Contrast checker → · Palette generator →

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