#334A17#334A17

#334A17 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.081 H 130.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#334A17
RGBrgb(51, 74, 23)
HSLhsl(87, 53%, 19%)
HSVhsv(87, 69%, 29%)
CMYKcmyk(31.1%, 0%, 68.9%, 71%)
CIE-LABlab(28.55, -18.55, 26.87)
CIE-LCHlch(28.55, 32.65, 124.61°)
OKLaboklab(37.77% -0.0522 0.062)
OKLCHoklch(37.77% 0.081 130.1)
XYZxyz(3.9686, 5.6631, 1.6944)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A17 #2E174A
analogous
#4A4817 #334A17 #1A4A17
triadic
#334A17 #17334A #4A1733
tetradic
#334A17 #174A48 #2E174A #4A171A
square
#334A17 #174A48 #2E174A #4A171A
split-complementary
#334A17 #171A4A #48174A
monochromatic
#101707 #131B08 #334A17 #537926 #73A734

Accessibility & contrast

On white

9.85
#334A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#334A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A17
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A17#FFFFFF#000000##FFFFFF
##334A171.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4411
Deuteranopia (green-blind)
#4A431B
Tritanopia (blue-blind)
#34473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334a17;
/* rgb */ color: rgb(51, 74, 23);
/* oklch */ color: oklch(37.8% 0.081 130.1);
Tailwind
colors: {
  custom: {
    50: '#6d7c56',
    500: '#334a17',
    950: '#000000',
  },
}
SCSS
$custom: #334a17;
$custom-light: #6d7c56;
$custom-dark: #000000;
JSON
{
  "hex": "#334a17",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 23
  },
  "hsl": {
    "h": 87.059,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.3777,
    "c": 0.08109,
    "h": 130.1
  },
  "luminance": 0.05663
}

Semantic roles & 50–950 ramp

primary
#334A17
secondary
#5B3C81
accent
#4CDC8D
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334A17

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

Preview Lab → · Contrast checker → · Palette generator →

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