#3A7312#3A7312

#3A7312 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.7% C 0.138 H 136.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#3A7312
RGBrgb(58, 115, 18)
HSLhsl(95, 73%, 26%)
HSVhsv(95, 84%, 45%)
CMYKcmyk(49.6%, 0%, 84.3%, 54.9%)
CIE-LABlab(43.07, -35.63, 43.52)
CIE-LCHlch(43.07, 56.24, 129.30°)
OKLaboklab(49.74% -0.0994 0.0961)
OKLCHoklch(49.74% 0.138 136)
XYZxyz(7.9846, 13.2042, 2.7001)
Luminance0.1321 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7312 #4B1273
analogous
#6A7312 #3A7312 #12731B
triadic
#3A7312 #123A73 #73123A
tetradic
#3A7312 #126A73 #4B1273 #731B12
square
#3A7312 #126A73 #4B1273 #731B12
split-complementary
#3A7312 #1B1273 #73126A
monochromatic
#0D1A04 #1F3E0A #3A7312 #55A81A #6FDD23

Accessibility & contrast

On white

5.77
#3A7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#3A7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7312
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7312#FFFFFF#000000##FFFFFF
##3A73121.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#70641E
Tritanopia (blue-blind)
#386E61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3a7312;
/* rgb */ color: rgb(58, 115, 18);
/* oklch */ color: oklch(49.7% 0.138 136.0);
Tailwind
colors: {
  custom: {
    50: '#779c5a',
    500: '#3a7312',
    950: '#000000',
  },
}
SCSS
$custom: #3a7312;
$custom-light: #779c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7312",
  "rgb": {
    "r": 58,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 95.258,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49739,
    "c": 0.13824,
    "h": 136
  },
  "luminance": 0.13205
}

Semantic roles & 50–950 ramp

primary
#3A7312
secondary
#7A37AA
accent
#38F0A4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7312

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

Preview Lab → · Contrast checker → · Palette generator →

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