#334708#334708

#334708 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.8% C 0.088 H 126.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#334708
RGBrgb(51, 71, 8)
HSLhsl(79, 80%, 15%)
HSVhsv(79, 89%, 28%)
CMYKcmyk(28.2%, 0%, 88.7%, 72.2%)
CIE-LABlab(27.37, -18.08, 32.27)
CIE-LCHlch(27.37, 36.99, 119.26°)
OKLaboklab(36.78% -0.0524 0.0708)
OKLCHoklch(36.78% 0.088 126.5)
XYZxyz(3.6623, 5.2277, 1.0458)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334708 #1C0847
analogous
#473B08 #334708 #134708
triadic
#334708 #083347 #470833
tetradic
#334708 #08473B #1C0847 #470813
square
#334708 #08473B #1C0847 #470813
split-complementary
#334708 #081347 #3B0847
monochromatic
#141C03 #141C03 #334708 #5B7E0E #82B514

Accessibility & contrast

On white

10.27
#334708 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#334708 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334708
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334708#FFFFFF#000000##FFFFFF
##3347081.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4100
Deuteranopia (green-blind)
#49400F
Tritanopia (blue-blind)
#36433C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334708;
/* rgb */ color: rgb(51, 71, 8);
/* oklch */ color: oklch(36.8% 0.088 126.5);
Tailwind
colors: {
  custom: {
    50: '#6d7a4e',
    500: '#334708',
    950: '#000000',
  },
}
SCSS
$custom: #334708;
$custom-light: #6d7a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#334708",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 8
  },
  "hsl": {
    "h": 79.048,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.3678,
    "c": 0.08806,
    "h": 126.5
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#334708
secondary
#442685
accent
#32F670
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334708

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

Preview Lab → · Contrast checker → · Palette generator →

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