#334B16#334B16

#334B16 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.084 H 130.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#334B16
RGBrgb(51, 75, 22)
HSLhsl(87, 55%, 19%)
HSVhsv(87, 71%, 29%)
CMYKcmyk(32%, 0%, 70.7%, 70.6%)
CIE-LABlab(28.89, -19.18, 27.75)
CIE-LCHlch(28.89, 33.73, 124.65°)
OKLaboklab(38.04% -0.0541 0.0638)
OKLCHoklch(38.04% 0.084 130.3)
XYZxyz(4.0261, 5.7938, 1.6651)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B16 #2E164B
analogous
#4B4916 #334B16 #194B16
triadic
#334B16 #16334B #4B1633
tetradic
#334B16 #164B49 #2E164B #4B1619
square
#334B16 #164B49 #2E164B #4B1619
split-complementary
#334B16 #16194B #49164B
monochromatic
#101807 #131C08 #334B16 #537A24 #73AA32

Accessibility & contrast

On white

9.73
#334B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#334B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B16
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B16#FFFFFF#000000##FFFFFF
##334B161.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F450F
Deuteranopia (green-blind)
#4B441A
Tritanopia (blue-blind)
#344840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334b16;
/* rgb */ color: rgb(51, 75, 22);
/* oklch */ color: oklch(38.0% 0.084 130.3);
Tailwind
colors: {
  custom: {
    50: '#6d7d56',
    500: '#334b16',
    950: '#000000',
  },
}
SCSS
$custom: #334b16;
$custom-light: #6d7d56;
$custom-dark: #000000;
JSON
{
  "hex": "#334b16",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 22
  },
  "hsl": {
    "h": 87.17,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38043,
    "c": 0.08359,
    "h": 130.3
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#334B16
secondary
#5B3A83
accent
#4ADE8D
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334B16

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

Preview Lab → · Contrast checker → · Palette generator →

#334B16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva