#345012#345012

#345012 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.5% C 0.094 H 130.9°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#345012
RGBrgb(52, 80, 18)
HSLhsl(87, 63%, 19%)
HSVhsv(87, 78%, 31%)
CMYKcmyk(35%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.67, -21.70, 31.50)
CIE-LCHlch(30.67, 38.25, 124.56°)
OKLaboklab(39.5% -0.0614 0.071)
OKLCHoklch(39.5% 0.094 130.9)
XYZxyz(4.3940, 6.5109, 1.5974)
Luminance0.0651 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#345012 #2E1250
analogous
#504D12 #345012 #155012
triadic
#345012 #123450 #501234
tetradic
#345012 #12504D #2E1250 #501215
square
#345012 #12504D #2E1250 #501215
split-complementary
#345012 #121550 #4D1250
monochromatic
#101906 #141E07 #345012 #54821D #75B428

Accessibility & contrast

On white

9.12
#345012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#345012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #345012
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##345012#FFFFFF#000000##FFFFFF
##3450121.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A08
Deuteranopia (green-blind)
#504718
Tritanopia (blue-blind)
#354C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #345012;
/* rgb */ color: rgb(52, 80, 18);
/* oklch */ color: oklch(39.5% 0.094 130.9);
Tailwind
colors: {
  custom: {
    50: '#6e8154',
    500: '#345012',
    950: '#000000',
  },
}
SCSS
$custom: #345012;
$custom-light: #6e8154;
$custom-dark: #000000;
JSON
{
  "hex": "#345012",
  "rgb": {
    "r": 52,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 87.097,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39497,
    "c": 0.09386,
    "h": 130.9
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

primary
#345012
secondary
#5B3589
accent
#41E68C
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #345012

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

Preview Lab → · Contrast checker → · Palette generator →

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