#3A5015#3A5015

#3A5015 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 40.0% C 0.088 H 127.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#3A5015
RGBrgb(58, 80, 21)
HSLhsl(82, 58%, 20%)
HSVhsv(82, 74%, 31%)
CMYKcmyk(27.5%, 0%, 73.7%, 68.6%)
CIE-LABlab(31.09, -18.83, 30.72)
CIE-LCHlch(31.09, 36.03, 121.51°)
OKLaboklab(39.96% -0.0537 0.0697)
OKLCHoklch(39.96% 0.088 127.6)
XYZxyz(4.7489, 6.6909, 1.7506)
Luminance0.0669 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5015 #2B1550
analogous
#504915 #3A5015 #1C5015
triadic
#3A5015 #153A50 #50153A
tetradic
#3A5015 #155049 #2B1550 #50151C
square
#3A5015 #155049 #2B1550 #50151C
split-complementary
#3A5015 #151C50 #491550
monochromatic
#121806 #172008 #3A5015 #5D8022 #80B12E

Accessibility & contrast

On white

8.98
#3A5015 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3A5015 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5015
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5015#FFFFFF#000000##FFFFFF
##3A50151.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0D
Deuteranopia (green-blind)
#51491A
Tritanopia (blue-blind)
#3C4C44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a5015;
/* rgb */ color: rgb(58, 80, 21);
/* oklch */ color: oklch(40.0% 0.088 127.6);
Tailwind
colors: {
  custom: {
    50: '#728156',
    500: '#3a5015',
    950: '#000000',
  },
}
SCSS
$custom: #3a5015;
$custom-light: #728156;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5015",
  "rgb": {
    "r": 58,
    "g": 80,
    "b": 21
  },
  "hsl": {
    "h": 82.373,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39957,
    "c": 0.08799,
    "h": 127.6
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#3A5015
secondary
#563988
accent
#46E280
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A5015

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

Preview Lab → · Contrast checker → · Palette generator →

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