#3A8F12#3A8F12

#3A8F12 is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.5% C 0.172 H 138.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#3A8F12
RGBrgb(58, 143, 18)
HSLhsl(101, 78%, 32%)
HSVhsv(101, 87%, 56%)
CMYKcmyk(59.4%, 0%, 87.4%, 43.9%)
CIE-LABlab(52.49, -46.68, 51.99)
CIE-LCHlch(52.49, 69.87, 131.92°)
OKLaboklab(57.51% -0.129 0.1139)
OKLCHoklch(57.51% 0.172 138.6)
XYZxyz(11.6761, 20.5871, 3.9306)
Luminance0.2059 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A8F12 #67128F
analogous
#798F12 #3A8F12 #128F29
triadic
#3A8F12 #123A8F #8F123A
tetradic
#3A8F12 #12798F #67128F #8F2912
square
#3A8F12 #12798F #67128F #8F2912
split-complementary
#3A8F12 #29128F #8F1279
monochromatic
#0E2204 #24590B #3A8F12 #50C519 #6EE636

Accessibility & contrast

On white

4.10
#3A8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#3A8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A8F12
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A8F12#FFFFFF#000000##000000
##3A8F121.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#897B23
Tritanopia (blue-blind)
#318A79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #3a8f12;
/* rgb */ color: rgb(58, 143, 18);
/* oklch */ color: oklch(57.5% 0.172 138.6);
Tailwind
colors: {
  custom: {
    50: '#7bb15e',
    500: '#3a8f12',
    950: '#000000',
  },
}
SCSS
$custom: #3a8f12;
$custom-light: #7bb15e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a8f12",
  "rgb": {
    "r": 58,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 100.8,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57511,
    "c": 0.1721,
    "h": 138.6
  },
  "luminance": 0.20588
}

Semantic roles & 50–950 ramp

primary
#3A8F12
secondary
#973AC3
accent
#34F4B7
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0A1105
muted
#7C8079

Preview Lab

Preview with #3A8F12

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

Preview Lab → · Contrast checker → · Palette generator →

#3A8F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva