#3A5A0F#3A5A0F

#3A5A0F is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.7% C 0.107 H 130.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#3A5A0F
RGBrgb(58, 90, 15)
HSLhsl(86, 71%, 21%)
HSVhsv(86, 83%, 35%)
CMYKcmyk(35.6%, 0%, 83.3%, 64.7%)
CIE-LABlab(34.49, -24.39, 36.54)
CIE-LCHlch(34.49, 43.93, 123.72°)
OKLaboklab(42.71% -0.0694 0.0809)
OKLCHoklch(42.71% 0.107 130.6)
XYZxyz(5.4873, 8.2462, 1.7544)
Luminance0.0825 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5A0F #2F0F5A
analogous
#5A540F #3A5A0F #145A0F
triadic
#3A5A0F #0F3A5A #5A0F3A
tetradic
#3A5A0F #0F5A54 #2F0F5A #5A0F14
square
#3A5A0F #0F5A54 #2F0F5A #5A0F14
split-complementary
#3A5A0F #0F145A #540F5A
monochromatic
#111A04 #182606 #3A5A0F #5C8E18 #7EC320

Accessibility & contrast

On white

7.93
#3A5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3A5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A5A0F
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5A0F#FFFFFF#000000##FFFFFF
##3A5A0F1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5300
Deuteranopia (green-blind)
#5A5017
Tritanopia (blue-blind)
#3B564C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a5a0f;
/* rgb */ color: rgb(58, 90, 15);
/* oklch */ color: oklch(42.7% 0.107 130.6);
Tailwind
colors: {
  custom: {
    50: '#748954',
    500: '#3a5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #3a5a0f;
$custom-light: #748954;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5a0f",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 85.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42706,
    "c": 0.10655,
    "h": 130.6
  },
  "luminance": 0.08246
}

Semantic roles & 50–950 ramp

primary
#3A5A0F
secondary
#5B3194
accent
#3AEE87
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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