#334912#334912

#334912 is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.4% C 0.084 H 128.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#334912
RGBrgb(51, 73, 18)
HSLhsl(84, 60%, 18%)
HSVhsv(84, 75%, 29%)
CMYKcmyk(30.1%, 0%, 75.3%, 71.4%)
CIE-LABlab(28.15, -18.47, 28.90)
CIE-LCHlch(28.15, 34.30, 122.59°)
OKLaboklab(37.43% -0.0525 0.0656)
OKLCHoklch(37.43% 0.084 128.7)
XYZxyz(3.8570, 5.5125, 1.4330)
Luminance0.0551 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334912 #281249
analogous
#494312 #334912 #174912
triadic
#334912 #123349 #491233
tetradic
#334912 #124943 #281249 #491217
square
#334912 #124943 #281249 #491217
split-complementary
#334912 #121749 #431249
monochromatic
#111906 #111906 #334912 #557A1E #78AB2A

Accessibility & contrast

On white

9.99
#334912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#334912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334912
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334912#FFFFFF#000000##FFFFFF
##3349121.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D430A
Deuteranopia (green-blind)
#4A4217
Tritanopia (blue-blind)
#35453E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334912;
/* rgb */ color: rgb(51, 73, 18);
/* oklch */ color: oklch(37.4% 0.084 128.7);
Tailwind
colors: {
  custom: {
    50: '#6d7c53',
    500: '#334912',
    950: '#000000',
  },
}
SCSS
$custom: #334912;
$custom-light: #6d7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#334912",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 84,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37431,
    "c": 0.08399,
    "h": 128.7
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

primary
#334912
secondary
#543582
accent
#44E484
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334912

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

Preview Lab → · Contrast checker → · Palette generator →

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