#345312#345312

#345312 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.098 H 131.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#345312
RGBrgb(52, 83, 18)
HSLhsl(89, 64%, 20%)
HSVhsv(89, 78%, 33%)
CMYKcmyk(37.3%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.72, -23.21, 32.56)
CIE-LCHlch(31.72, 39.98, 125.49°)
OKLaboklab(40.35% -0.0655 0.0732)
OKLCHoklch(40.35% 0.098 131.8)
XYZxyz(4.6186, 6.9601, 1.6722)
Luminance0.0696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345312 #311253
analogous
#535112 #345312 #145312
triadic
#345312 #123453 #531234
tetradic
#345312 #125351 #311253 #531214
square
#345312 #125351 #311253 #531214
split-complementary
#345312 #121453 #511253
monochromatic
#101905 #142107 #345312 #54851D #73B828

Accessibility & contrast

On white

8.78
#345312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#345312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345312
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345312#FFFFFF#000000##FFFFFF
##3453121.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#354F46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #345312;
/* rgb */ color: rgb(52, 83, 18);
/* oklch */ color: oklch(40.4% 0.098 131.8);
Tailwind
colors: {
  custom: {
    50: '#6f8355',
    500: '#345312',
    950: '#000000',
  },
}
SCSS
$custom: #345312;
$custom-light: #6f8355;
$custom-dark: #000000;
JSON
{
  "hex": "#345312",
  "rgb": {
    "r": 52,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 88.615,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40352,
    "c": 0.09825,
    "h": 131.8
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#345312
secondary
#5E358C
accent
#40E790
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #345312

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

Preview Lab → · Contrast checker → · Palette generator →

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