#345212#345212

#345212 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.1% C 0.097 H 131.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#345212
RGBrgb(52, 82, 18)
HSLhsl(88, 64%, 20%)
HSVhsv(88, 78%, 32%)
CMYKcmyk(36.6%, 0%, 78%, 67.8%)
CIE-LABlab(31.37, -22.71, 32.20)
CIE-LCHlch(31.37, 39.41, 125.20°)
OKLaboklab(40.07% -0.0642 0.0725)
OKLCHoklch(40.07% 0.097 131.5)
XYZxyz(4.5426, 6.8082, 1.6469)
Luminance0.0681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345212 #301252
analogous
#525012 #345212 #145212
triadic
#345212 #123452 #521234
tetradic
#345212 #125250 #301252 #521214
square
#345212 #125250 #301252 #521214
split-complementary
#345212 #121452 #501252
monochromatic
#101906 #142007 #345212 #54841D #74B628

Accessibility & contrast

On white

8.89
#345212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#345212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345212
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345212#FFFFFF#000000##FFFFFF
##3452121.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #345212;
/* rgb */ color: rgb(52, 82, 18);
/* oklch */ color: oklch(40.1% 0.097 131.5);
Tailwind
colors: {
  custom: {
    50: '#6e8355',
    500: '#345212',
    950: '#000000',
  },
}
SCSS
$custom: #345212;
$custom-light: #6e8355;
$custom-dark: #000000;
JSON
{
  "hex": "#345212",
  "rgb": {
    "r": 52,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 88.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40067,
    "c": 0.09678,
    "h": 131.5
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#345212
secondary
#5D358B
accent
#41E78F
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #345212

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

Preview Lab → · Contrast checker → · Palette generator →

#345212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva