#34571B#34571B

#34571B is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.6% C 0.097 H 134.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#34571B
RGBrgb(52, 87, 27)
HSLhsl(95, 53%, 22%)
HSVhsv(95, 69%, 34%)
CMYKcmyk(40.2%, 0%, 69%, 65.9%)
CIE-LABlab(33.19, -24.40, 29.98)
CIE-LCHlch(33.19, 38.65, 129.15°)
OKLaboklab(41.58% -0.068 0.0692)
OKLCHoklch(41.58% 0.097 134.5)
XYZxyz(5.0221, 7.6254, 2.2439)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34571B #3E1B57
analogous
#52571B #34571B #1B5720
triadic
#34571B #1B3457 #571B34
tetradic
#34571B #1B5257 #3E1B57 #57201B
square
#34571B #1B5257 #3E1B57 #57201B
split-complementary
#34571B #201B57 #571B52
monochromatic
#0E1707 #18280D #34571B #508629 #6CB438

Accessibility & contrast

On white

8.32
#34571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#34571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34571B
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34571B#FFFFFF#000000##FFFFFF
##34571B1.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A5014
Deuteranopia (green-blind)
#564D20
Tritanopia (blue-blind)
#34544A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #34571b;
/* rgb */ color: rgb(52, 87, 27);
/* oklch */ color: oklch(41.6% 0.097 134.5);
Tailwind
colors: {
  custom: {
    50: '#6e865a',
    500: '#34571b',
    950: '#000000',
  },
}
SCSS
$custom: #34571b;
$custom-light: #6e865a;
$custom-dark: #000000;
JSON
{
  "hex": "#34571b",
  "rgb": {
    "r": 52,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 95,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.4158,
    "c": 0.09696,
    "h": 134.5
  },
  "luminance": 0.07626
}

Semantic roles & 50–950 ramp

primary
#34571B
secondary
#6D418D
accent
#4CDCA0
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #34571B

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

Preview Lab → · Contrast checker → · Palette generator →

#34571B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva