#34520F#34520F

#34520F is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.099 H 131.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#34520F
RGBrgb(52, 82, 15)
HSLhsl(87, 69%, 19%)
HSVhsv(87, 82%, 32%)
CMYKcmyk(36.6%, 0%, 81.7%, 67.8%)
CIE-LABlab(31.34, -22.93, 33.41)
CIE-LCHlch(31.34, 40.52, 124.46°)
OKLaboklab(40.04% -0.065 0.0745)
OKLCHoklch(40.04% 0.099 131.1)
XYZxyz(4.5197, 6.7990, 1.5260)
Luminance0.0680 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34520F #2D0F52
analogous
#524F0F #34520F #13520F
triadic
#34520F #0F3452 #520F34
tetradic
#34520F #0F524F #2D0F52 #520F13
square
#34520F #0F524F #2D0F52 #520F13
split-complementary
#34520F #0F1352 #4F0F52
monochromatic
#101A05 #131E06 #34520F #558618 #76B922

Accessibility & contrast

On white

8.90
#34520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#34520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34520F
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34520F#FFFFFF#000000##FFFFFF
##34520F1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B03
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#354E45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #34520f;
/* rgb */ color: rgb(52, 82, 15);
/* oklch */ color: oklch(40.0% 0.099 131.1);
Tailwind
colors: {
  custom: {
    50: '#6f8353',
    500: '#34520f',
    950: '#000000',
  },
}
SCSS
$custom: #34520f;
$custom-light: #6f8353;
$custom-dark: #000000;
JSON
{
  "hex": "#34520f",
  "rgb": {
    "r": 52,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 86.866,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.40043,
    "c": 0.09885,
    "h": 131.1
  },
  "luminance": 0.06799
}

Semantic roles & 50–950 ramp

primary
#34520F
secondary
#5A318C
accent
#3CEC8B
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #34520F

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

Preview Lab → · Contrast checker → · Palette generator →

#34520F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva