#345112#345112

#345112 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.095 H 131.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#345112
RGBrgb(52, 81, 18)
HSLhsl(88, 64%, 19%)
HSVhsv(88, 78%, 32%)
CMYKcmyk(35.8%, 0%, 77.8%, 68.2%)
CIE-LABlab(31.02, -22.21, 31.85)
CIE-LCHlch(31.02, 38.83, 124.89°)
OKLaboklab(39.78% -0.0628 0.0717)
OKLCHoklch(39.78% 0.095 131.2)
XYZxyz(4.4677, 6.6584, 1.6220)
Luminance0.0666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345112 #2F1251
analogous
#514F12 #345112 #155112
triadic
#345112 #123451 #511234
tetradic
#345112 #12514F #2F1251 #511215
square
#345112 #12514F #2F1251 #511215
split-complementary
#345112 #121551 #4F1251
monochromatic
#101906 #141F07 #345112 #54831D #74B528

Accessibility & contrast

On white

9.01
#345112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#345112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345112
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345112#FFFFFF#000000##FFFFFF
##3451121.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#354D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #345112;
/* rgb */ color: rgb(52, 81, 18);
/* oklch */ color: oklch(39.8% 0.095 131.2);
Tailwind
colors: {
  custom: {
    50: '#6e8254',
    500: '#345112',
    950: '#000000',
  },
}
SCSS
$custom: #345112;
$custom-light: #6e8254;
$custom-dark: #000000;
JSON
{
  "hex": "#345112",
  "rgb": {
    "r": 52,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 87.619,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39782,
    "c": 0.09533,
    "h": 131.2
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#345112
secondary
#5C358A
accent
#41E78D
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #345112

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

Preview Lab → · Contrast checker → · Palette generator →

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