#398D12#398D12

#398D12 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.9% C 0.170 H 138.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#398D12
RGBrgb(57, 141, 18)
HSLhsl(101, 77%, 31%)
HSVhsv(101, 87%, 55%)
CMYKcmyk(59.6%, 0%, 87.2%, 44.7%)
CIE-LABlab(51.79, -46.21, 51.36)
CIE-LCHlch(51.79, 69.09, 131.98°)
OKLaboklab(56.92% -0.1277 0.1126)
OKLCHoklch(56.92% 0.17 138.6)
XYZxyz(11.3210, 19.9623, 3.8287)
Luminance0.1996 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398D12 #66128D
analogous
#768D12 #398D12 #128D29
triadic
#398D12 #12398D #8D1239
tetradic
#398D12 #12768D #66128D #8D2912
square
#398D12 #12768D #66128D #8D2912
split-complementary
#398D12 #29128D #8D1276
monochromatic
#0D2004 #23570B #398D12 #4FC319 #6CE534

Accessibility & contrast

On white

4.21
#398D12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#398D12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #398D12
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398D12#FFFFFF#000000##000000
##398D121.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#308878
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #398d12;
/* rgb */ color: rgb(57, 141, 18);
/* oklch */ color: oklch(56.9% 0.170 138.6);
Tailwind
colors: {
  custom: {
    50: '#7aaf5e',
    500: '#398d12',
    950: '#000000',
  },
}
SCSS
$custom: #398d12;
$custom-light: #7aaf5e;
$custom-dark: #000000;
JSON
{
  "hex": "#398d12",
  "rgb": {
    "r": 57,
    "g": 141,
    "b": 18
  },
  "hsl": {
    "h": 100.976,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56923,
    "c": 0.17023,
    "h": 138.6
  },
  "luminance": 0.19963
}

Semantic roles & 50–950 ramp

primary
#398D12
secondary
#9639C1
accent
#34F4B7
background
#F7FAF5
surface
#EEF5EA
border
#C9CFC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398D12

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

Preview Lab → · Contrast checker → · Palette generator →

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