#334B17#334B17

#334B17 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.1% C 0.083 H 130.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#334B17
RGBrgb(51, 75, 23)
HSLhsl(88, 53%, 19%)
HSVhsv(88, 69%, 29%)
CMYKcmyk(32%, 0%, 69.3%, 70.6%)
CIE-LABlab(28.90, -19.08, 27.25)
CIE-LCHlch(28.90, 33.27, 125.00°)
OKLaboklab(38.05% -0.0537 0.0629)
OKLCHoklch(38.05% 0.083 130.5)
XYZxyz(4.0359, 5.7977, 1.7169)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B17 #2F174B
analogous
#4B4917 #334B17 #194B17
triadic
#334B17 #17334B #4B1733
tetradic
#334B17 #174B49 #2F174B #4B1719
square
#334B17 #174B49 #2F174B #4B1719
split-complementary
#334B17 #17194B #49174B
monochromatic
#101707 #131C09 #334B17 #537A25 #73A934

Accessibility & contrast

On white

9.72
#334B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334B17
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B17#FFFFFF#000000##FFFFFF
##334B171.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334b17;
/* rgb */ color: rgb(51, 75, 23);
/* oklch */ color: oklch(38.1% 0.083 130.5);
Tailwind
colors: {
  custom: {
    50: '#6d7d57',
    500: '#334b17',
    950: '#000000',
  },
}
SCSS
$custom: #334b17;
$custom-light: #6d7d57;
$custom-dark: #000000;
JSON
{
  "hex": "#334b17",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 23
  },
  "hsl": {
    "h": 87.692,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.08266,
    "h": 130.5
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#334B17
secondary
#5C3C82
accent
#4BDC8E
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334B17

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

Preview Lab → · Contrast checker → · Palette generator →

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