#334812#334812

#334812 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.082 H 128.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#334812
RGBrgb(51, 72, 18)
HSLhsl(83, 60%, 18%)
HSVhsv(83, 75%, 28%)
CMYKcmyk(29.2%, 0%, 75%, 71.8%)
CIE-LABlab(27.80, -17.93, 28.53)
CIE-LCHlch(27.80, 33.70, 122.15°)
OKLaboklab(37.15% -0.051 0.0648)
OKLCHoklch(37.15% 0.082 128.2)
XYZxyz(3.7918, 5.3821, 1.4112)
Luminance0.0538 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334812 #271248
analogous
#484212 #334812 #184812
triadic
#334812 #123348 #481233
tetradic
#334812 #124842 #271248 #481218
square
#334812 #124842 #271248 #481218
split-complementary
#334812 #121848 #421248
monochromatic
#111806 #111806 #334812 #56791E #78AA2A

Accessibility & contrast

On white

10.11
#334812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#334812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334812
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334812#FFFFFF#000000##FFFFFF
##3348121.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C430A
Deuteranopia (green-blind)
#494116
Tritanopia (blue-blind)
#35443D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334812;
/* rgb */ color: rgb(51, 72, 18);
/* oklch */ color: oklch(37.1% 0.082 128.2);
Tailwind
colors: {
  custom: {
    50: '#6d7b53',
    500: '#334812',
    950: '#000000',
  },
}
SCSS
$custom: #334812;
$custom-light: #6d7b53;
$custom-dark: #000000;
JSON
{
  "hex": "#334812",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 83.333,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.08247,
    "h": 128.2
  },
  "luminance": 0.05382
}

Semantic roles & 50–950 ramp

primary
#334812
secondary
#523581
accent
#45E382
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334812

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

Preview Lab → · Contrast checker → · Palette generator →

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