#398018#398018

#398018 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.4% C 0.152 H 138.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#398018
RGBrgb(57, 128, 24)
HSLhsl(101, 68%, 30%)
HSVhsv(101, 81%, 50%)
CMYKcmyk(55.5%, 0%, 81.3%, 49.8%)
CIE-LABlab(47.46, -40.92, 45.70)
CIE-LCHlch(47.46, 61.34, 131.84°)
OKLaboklab(53.35% -0.1132 0.1016)
OKLCHoklch(53.35% 0.152 138.1)
XYZxyz(9.5710, 16.3734, 3.5200)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398018 #5F1880
analogous
#6D8018 #398018 #18802B
triadic
#398018 #183980 #801839
tetradic
#398018 #186D80 #5F1880 #802B18
square
#398018 #186D80 #5F1880 #802B18
split-complementary
#398018 #2B1880 #80186D
monochromatic
#0B1A05 #224C0E #398018 #50B422 #6CDA39

Accessibility & contrast

On white

4.91
#398018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#398018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398018
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398018#FFFFFF#000000##FFFFFF
##3980181.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#337B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #398018;
/* rgb */ color: rgb(57, 128, 24);
/* oklch */ color: oklch(53.4% 0.152 138.1);
Tailwind
colors: {
  custom: {
    50: '#78a55e',
    500: '#398018',
    950: '#000000',
  },
}
SCSS
$custom: #398018;
$custom-light: #78a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#398018",
  "rgb": {
    "r": 57,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 100.962,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53353,
    "c": 0.15209,
    "h": 138.1
  },
  "luminance": 0.16374
}

Semantic roles & 50–950 ramp

primary
#398018
secondary
#8F40B4
accent
#3DEBB4
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #398018

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

Preview Lab → · Contrast checker → · Palette generator →

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