#398E12#398E12

#398E12 is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.2% C 0.171 H 138.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#398E12
RGBrgb(57, 142, 18)
HSLhsl(101, 78%, 31%)
HSVhsv(101, 87%, 56%)
CMYKcmyk(59.9%, 0%, 87.3%, 44.3%)
CIE-LABlab(52.13, -46.58, 51.66)
CIE-LCHlch(52.13, 69.56, 132.04°)
OKLaboklab(57.2% -0.1287 0.1132)
OKLCHoklch(57.2% 0.171 138.7)
XYZxyz(11.4691, 20.2585, 3.8780)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398E12 #67128E
analogous
#778E12 #398E12 #128E29
triadic
#398E12 #12398E #8E1239
tetradic
#398E12 #12778E #67128E #8E2912
square
#398E12 #12778E #67128E #8E2912
split-complementary
#398E12 #29128E #8E1277
monochromatic
#0D2104 #23580B #398E12 #4FC419 #6CE535

Accessibility & contrast

On white

4.16
#398E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#398E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398E12
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398E12#FFFFFF#000000##000000
##398E121.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#887A23
Tritanopia (blue-blind)
#308978
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #398e12;
/* rgb */ color: rgb(57, 142, 18);
/* oklch */ color: oklch(57.2% 0.171 138.7);
Tailwind
colors: {
  custom: {
    50: '#7ab05e',
    500: '#398e12',
    950: '#000000',
  },
}
SCSS
$custom: #398e12;
$custom-light: #7ab05e;
$custom-dark: #000000;
JSON
{
  "hex": "#398e12",
  "rgb": {
    "r": 57,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 101.129,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57199,
    "c": 0.17138,
    "h": 138.7
  },
  "luminance": 0.2026
}

Semantic roles & 50–950 ramp

primary
#398E12
secondary
#973AC2
accent
#34F4B8
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398E12

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

Preview Lab → · Contrast checker → · Palette generator →

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