#3A8215#3A8215

#3A8215 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 53.9% C 0.156 H 137.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#3A8215
RGBrgb(58, 130, 21)
HSLhsl(100, 72%, 30%)
HSVhsv(100, 84%, 51%)
CMYKcmyk(55.4%, 0%, 83.8%, 49%)
CIE-LABlab(48.16, -41.58, 47.30)
CIE-LCHlch(48.16, 62.98, 131.32°)
OKLaboklab(53.93% -0.1152 0.1044)
OKLCHoklch(53.93% 0.156 137.8)
XYZxyz(9.8626, 16.9182, 3.4551)
Luminance0.1692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A8215 #5D1582
analogous
#718215 #3A8215 #158227
triadic
#3A8215 #153A82 #82153A
tetradic
#3A8215 #157182 #5D1582 #822715
square
#3A8215 #157182 #5D1582 #822715
split-complementary
#3A8215 #271582 #821571
monochromatic
#0C1A04 #224D0C #3A8215 #52B71E #6DDE33

Accessibility & contrast

On white

4.79
#3A8215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#3A8215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A8215
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A8215#FFFFFF#000000##FFFFFF
##3A82151.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7D7022
Tritanopia (blue-blind)
#347D6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3a8215;
/* rgb */ color: rgb(58, 130, 21);
/* oklch */ color: oklch(53.9% 0.156 137.8);
Tailwind
colors: {
  custom: {
    50: '#79a75d',
    500: '#3a8215',
    950: '#000000',
  },
}
SCSS
$custom: #3a8215;
$custom-light: #79a75d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a8215",
  "rgb": {
    "r": 58,
    "g": 130,
    "b": 21
  },
  "hsl": {
    "h": 99.633,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53933,
    "c": 0.15551,
    "h": 137.8
  },
  "luminance": 0.16919
}

Semantic roles & 50–950 ramp

primary
#3A8215
secondary
#8D3CB7
accent
#39EFB1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #3A8215

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

Preview Lab → · Contrast checker → · Palette generator →

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