#3A8312#3A8312

#3A8312 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.2% C 0.158 H 137.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#3A8312
RGBrgb(58, 131, 18)
HSLhsl(99, 76%, 29%)
HSVhsv(99, 86%, 51%)
CMYKcmyk(55.7%, 0%, 86.3%, 48.6%)
CIE-LABlab(48.48, -42.12, 48.43)
CIE-LCHlch(48.48, 64.18, 131.02°)
OKLaboklab(54.2% -0.1168 0.1064)
OKLCHoklch(54.2% 0.158 137.7)
XYZxyz(9.9701, 17.1750, 3.3619)
Luminance0.1718 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A8312 #5B1283
analogous
#738312 #3A8312 #128323
triadic
#3A8312 #123A83 #83123A
tetradic
#3A8312 #127383 #5B1283 #832312
square
#3A8312 #127383 #5B1283 #832312
split-complementary
#3A8312 #231283 #831273
monochromatic
#0C1B04 #224D0B #3A8312 #52B919 #6DE22D

Accessibility & contrast

On white

4.73
#3A8312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#3A8312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A8312
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A8312#FFFFFF#000000##FFFFFF
##3A83121.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7E7121
Tritanopia (blue-blind)
#347E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #3a8312;
/* rgb */ color: rgb(58, 131, 18);
/* oklch */ color: oklch(54.2% 0.158 137.7);
Tailwind
colors: {
  custom: {
    50: '#79a85c',
    500: '#3a8312',
    950: '#000000',
  },
}
SCSS
$custom: #3a8312;
$custom-light: #79a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a8312",
  "rgb": {
    "r": 58,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 98.761,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54195,
    "c": 0.15799,
    "h": 137.7
  },
  "luminance": 0.17176
}

Semantic roles & 50–950 ramp

primary
#3A8312
secondary
#8B38B8
accent
#35F2B0
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #3A8312

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

Preview Lab → · Contrast checker → · Palette generator →

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