#398315#398315

#398315 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.2% C 0.157 H 138.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#398315
RGBrgb(57, 131, 21)
HSLhsl(100, 72%, 30%)
HSVhsv(100, 84%, 51%)
CMYKcmyk(56.5%, 0%, 84%, 48.6%)
CIE-LABlab(48.46, -42.27, 47.56)
CIE-LCHlch(48.46, 63.63, 131.63°)
OKLaboklab(54.17% -0.117 0.105)
OKLCHoklch(54.17% 0.157 138.1)
XYZxyz(9.9386, 17.1558, 3.4970)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398315 #5F1583
analogous
#708315 #398315 #158328
triadic
#398315 #153983 #831539
tetradic
#398315 #157083 #5F1583 #832815
square
#398315 #157083 #5F1583 #832815
split-complementary
#398315 #281583 #831570
monochromatic
#0B1A04 #224E0D #398315 #50B81D #6CDE34

Accessibility & contrast

On white

4.74
#398315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#398315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398315
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398315#FFFFFF#000000##FFFFFF
##3983151.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#337E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #398315;
/* rgb */ color: rgb(57, 131, 21);
/* oklch */ color: oklch(54.2% 0.157 138.1);
Tailwind
colors: {
  custom: {
    50: '#78a85e',
    500: '#398315',
    950: '#000000',
  },
}
SCSS
$custom: #398315;
$custom-light: #78a85e;
$custom-dark: #000000;
JSON
{
  "hex": "#398315",
  "rgb": {
    "r": 57,
    "g": 131,
    "b": 21
  },
  "hsl": {
    "h": 100.364,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54169,
    "c": 0.1572,
    "h": 138.1
  },
  "luminance": 0.17157
}

Semantic roles & 50–950 ramp

primary
#398315
secondary
#8F3CB8
accent
#39EFB3
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398315

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

Preview Lab → · Contrast checker → · Palette generator →

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