#398318#398318

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

Color values

HEX#398318
RGBrgb(57, 131, 24)
HSLhsl(101, 69%, 30%)
HSVhsv(101, 82%, 51%)
CMYKcmyk(56.5%, 0%, 81.7%, 48.6%)
CIE-LABlab(48.47, -42.10, 46.65)
CIE-LCHlch(48.47, 62.84, 132.06°)
OKLaboklab(54.19% -0.1164 0.1036)
OKLCHoklch(54.19% 0.156 138.3)
XYZxyz(9.9681, 17.1676, 3.6524)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398318 #621883
analogous
#6E8318 #398318 #18832C
triadic
#398318 #183983 #831839
tetradic
#398318 #186E83 #621883 #832C18
square
#398318 #186E83 #621883 #832C18
split-complementary
#398318 #2C1883 #83186E
monochromatic
#0C1C05 #224F0F #398318 #50B721 #6CDB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398318#FFFFFF#000000##FFFFFF
##3983181.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)
#7E7125
Tritanopia (blue-blind)
#327E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #398318;
/* rgb */ color: rgb(57, 131, 24);
/* oklch */ color: oklch(54.2% 0.156 138.3);
Tailwind
colors: {
  custom: {
    50: '#78a85f',
    500: '#398318',
    950: '#000000',
  },
}
SCSS
$custom: #398318;
$custom-light: #78a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#398318",
  "rgb": {
    "r": 57,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 101.495,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54186,
    "c": 0.15578,
    "h": 138.3
  },
  "luminance": 0.17168
}

Semantic roles & 50–950 ramp

primary
#398318
secondary
#9240B7
accent
#3CECB6
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398318

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

Preview Lab → · Contrast checker → · Palette generator →

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