#3A7215#3A7215

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

Color values

HEX#3A7215
RGBrgb(58, 114, 21)
HSLhsl(96, 69%, 26%)
HSVhsv(96, 82%, 45%)
CMYKcmyk(49.1%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.74, -35.03, 42.25)
CIE-LCHlch(42.74, 54.88, 129.66°)
OKLaboklab(49.48% -0.0976 0.0939)
OKLCHoklch(49.48% 0.135 136.1)
XYZxyz(7.8974, 12.9878, 2.8001)
Luminance0.1299 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7215 #4D1572
analogous
#697215 #3A7215 #15721F
triadic
#3A7215 #153A72 #72153A
tetradic
#3A7215 #156972 #4D1572 #721F15
square
#3A7215 #156972 #4D1572 #721F15
split-complementary
#3A7215 #1F1572 #721569
monochromatic
#0D1A05 #203E0B #3A7215 #54A61F #6FD82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A7215#FFFFFF#000000##FFFFFF
##3A72151.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)
#6F631F
Tritanopia (blue-blind)
#376D61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a7215;
/* rgb */ color: rgb(58, 114, 21);
/* oklch */ color: oklch(49.5% 0.135 136.1);
Tailwind
colors: {
  custom: {
    50: '#769b5b',
    500: '#3a7215',
    950: '#000000',
  },
}
SCSS
$custom: #3a7215;
$custom-light: #769b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7215",
  "rgb": {
    "r": 58,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 96.129,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49477,
    "c": 0.13544,
    "h": 136.1
  },
  "luminance": 0.12988
}

Semantic roles & 50–950 ramp

primary
#3A7215
secondary
#7D3BA8
accent
#3CECA6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7215

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

Preview Lab → · Contrast checker → · Palette generator →

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