#3A540F#3A540F

#3A540F is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.0% C 0.098 H 128.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#3A540F
RGBrgb(58, 84, 15)
HSLhsl(83, 70%, 19%)
HSVhsv(83, 82%, 33%)
CMYKcmyk(31%, 0%, 82.1%, 67.1%)
CIE-LABlab(32.42, -21.36, 34.58)
CIE-LCHlch(32.42, 40.64, 121.70°)
OKLaboklab(41.02% -0.0612 0.0768)
OKLCHoklch(41.02% 0.098 128.5)
XYZxyz(5.0015, 7.2746, 1.5925)
Luminance0.0727 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A540F #290F54
analogous
#544C0F #3A540F #17540F
triadic
#3A540F #0F3A54 #540F3A
tetradic
#3A540F #0F544C #290F54 #540F17
square
#3A540F #0F544C #290F54 #540F17
split-complementary
#3A540F #0F1754 #4C0F54
monochromatic
#121A05 #162006 #3A540F #5E8818 #82BC22

Accessibility & contrast

On white

8.55
#3A540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3A540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A540F
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A540F#FFFFFF#000000##FFFFFF
##3A540F1.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594D02
Deuteranopia (green-blind)
#554C16
Tritanopia (blue-blind)
#3C5047
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a540f;
/* rgb */ color: rgb(58, 84, 15);
/* oklch */ color: oklch(41.0% 0.098 128.5);
Tailwind
colors: {
  custom: {
    50: '#738453',
    500: '#3a540f',
    950: '#000000',
  },
}
SCSS
$custom: #3a540f;
$custom-light: #738453;
$custom-dark: #000000;
JSON
{
  "hex": "#3a540f",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 82.609,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.41023,
    "c": 0.09816,
    "h": 128.5
  },
  "luminance": 0.07275
}

Semantic roles & 50–950 ramp

primary
#3A540F
secondary
#54318E
accent
#3BED7E
background
#F7F8F4
surface
#EDEFE8
border
#C8CAC4
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #3A540F

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

Preview Lab → · Contrast checker → · Palette generator →

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