#3A510F#3A510F

#3A510F is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.2% C 0.094 H 127.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#3A510F
RGBrgb(58, 81, 15)
HSLhsl(81, 69%, 19%)
HSVhsv(81, 81%, 32%)
CMYKcmyk(28.4%, 0%, 81.5%, 68.2%)
CIE-LABlab(31.39, -19.79, 33.59)
CIE-LCHlch(31.39, 38.99, 120.51°)
OKLaboklab(40.18% -0.0569 0.0747)
OKLCHoklch(40.18% 0.094 127.3)
XYZxyz(4.7736, 6.8188, 1.5165)
Luminance0.0682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A510F #260F51
analogous
#51470F #3A510F #19510F
triadic
#3A510F #0F3A51 #510F3A
tetradic
#3A510F #0F5147 #260F51 #510F19
square
#3A510F #0F5147 #260F51 #510F19
split-complementary
#3A510F #0F1951 #470F51
monochromatic
#121A05 #151D05 #3A510F #5F8519 #84B822

Accessibility & contrast

On white

8.88
#3A510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3A510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A510F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A510F#FFFFFF#000000##FFFFFF
##3A510F1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B03
Deuteranopia (green-blind)
#524915
Tritanopia (blue-blind)
#3D4D44
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a510f;
/* rgb */ color: rgb(58, 81, 15);
/* oklch */ color: oklch(40.2% 0.094 127.3);
Tailwind
colors: {
  custom: {
    50: '#738253',
    500: '#3a510f',
    950: '#000000',
  },
}
SCSS
$custom: #3a510f;
$custom-light: #738253;
$custom-dark: #000000;
JSON
{
  "hex": "#3a510f",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 80.909,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40184,
    "c": 0.0939,
    "h": 127.3
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#3A510F
secondary
#50318B
accent
#3CEC79
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#080A03
muted
#7B7C78

Preview Lab

Preview with #3A510F

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

Preview Lab → · Contrast checker → · Palette generator →

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