#3A7211#3A7211

#3A7211 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.5% C 0.137 H 135.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#3A7211
RGBrgb(58, 114, 17)
HSLhsl(95, 74%, 26%)
HSVhsv(95, 85%, 45%)
CMYKcmyk(49.1%, 0%, 85.1%, 55.3%)
CIE-LABlab(42.72, -35.26, 43.51)
CIE-LCHlch(42.72, 56.00, 129.02°)
OKLaboklab(49.45% -0.0985 0.0959)
OKLCHoklch(49.45% 0.137 135.8)
XYZxyz(7.8632, 12.9741, 2.6201)
Luminance0.1298 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7211 #491172
analogous
#6A7211 #3A7211 #117218
triadic
#3A7211 #113A72 #72113A
tetradic
#3A7211 #116A72 #491172 #721811
square
#3A7211 #116A72 #491172 #721811
split-complementary
#3A7211 #181172 #72116A
monochromatic
#0E1B04 #1F3D09 #3A7211 #55A719 #70DD21

Accessibility & contrast

On white

5.84
#3A7211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3A7211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7211
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7211#FFFFFF#000000##FFFFFF
##3A72111.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6F631D
Tritanopia (blue-blind)
#386D60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a7211;
/* rgb */ color: rgb(58, 114, 17);
/* oklch */ color: oklch(49.5% 0.137 135.8);
Tailwind
colors: {
  custom: {
    50: '#769b59',
    500: '#3a7211',
    950: '#000000',
  },
}
SCSS
$custom: #3a7211;
$custom-light: #769b59;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7211",
  "rgb": {
    "r": 58,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 94.639,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.49453,
    "c": 0.13745,
    "h": 135.8
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#3A7211
secondary
#7836A9
accent
#37F1A2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7211

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

Preview Lab → · Contrast checker → · Palette generator →

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