#3A5A12#3A5A12

#3A5A12 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.105 H 130.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#3A5A12
RGBrgb(58, 90, 18)
HSLhsl(87, 67%, 21%)
HSVhsv(87, 80%, 35%)
CMYKcmyk(35.6%, 0%, 80%, 64.7%)
CIE-LABlab(34.51, -24.20, 35.43)
CIE-LCHlch(34.51, 42.91, 124.33°)
OKLaboklab(42.73% -0.0686 0.0791)
OKLCHoklch(42.73% 0.105 130.9)
XYZxyz(5.5102, 8.2553, 1.8753)
Luminance0.0826 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5A12 #32125A
analogous
#5A5612 #3A5A12 #165A12
triadic
#3A5A12 #123A5A #5A123A
tetradic
#3A5A12 #125A56 #32125A #5A1216
square
#3A5A12 #125A56 #32125A #5A1216
split-complementary
#3A5A12 #12165A #56125A
monochromatic
#101A05 #192708 #3A5A12 #5B8D1C #7CC026

Accessibility & contrast

On white

7.92
#3A5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3A5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5A12
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5A12#FFFFFF#000000##FFFFFF
##3A5A121.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5304
Deuteranopia (green-blind)
#5A5019
Tritanopia (blue-blind)
#3B564C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a5a12;
/* rgb */ color: rgb(58, 90, 18);
/* oklch */ color: oklch(42.7% 0.105 130.9);
Tailwind
colors: {
  custom: {
    50: '#738956',
    500: '#3a5a12',
    950: '#000000',
  },
}
SCSS
$custom: #3a5a12;
$custom-light: #738956;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5a12",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 86.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42727,
    "c": 0.10472,
    "h": 130.9
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#3A5A12
secondary
#5F3593
accent
#3EEA8A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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