#334606#334606

#334606 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.5% C 0.088 H 125.8°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#334606
RGBrgb(51, 70, 6)
HSLhsl(78, 84%, 15%)
HSVhsv(78, 91%, 27%)
CMYKcmyk(27.1%, 0%, 91.4%, 72.5%)
CIE-LABlab(27.01, -17.65, 32.74)
CIE-LCHlch(27.01, 37.19, 118.34°)
OKLaboklab(36.48% -0.0514 0.0713)
OKLCHoklch(36.48% 0.088 125.8)
XYZxyz(3.5883, 5.0972, 0.9671)
Luminance0.0510 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334606 #190646
analogous
#463906 #334606 #134606
triadic
#334606 #063346 #460633
tetradic
#334606 #064639 #190646 #460613
square
#334606 #064639 #190646 #460613
split-complementary
#334606 #061346 #390646
monochromatic
#151C02 #151C02 #334606 #5C7E0B #85B710

Accessibility & contrast

On white

10.40
#334606 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#334606 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334606
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334606#FFFFFF#000000##FFFFFF
##3346061.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4100
Deuteranopia (green-blind)
#48400D
Tritanopia (blue-blind)
#36423B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #334606;
/* rgb */ color: rgb(51, 70, 6);
/* oklch */ color: oklch(36.5% 0.088 125.8);
Tailwind
colors: {
  custom: {
    50: '#6d794d',
    500: '#334606',
    950: '#000000',
  },
}
SCSS
$custom: #334606;
$custom-light: #6d794d;
$custom-dark: #000000;
JSON
{
  "hex": "#334606",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 6
  },
  "hsl": {
    "h": 77.813,
    "s": 84.211,
    "l": 14.902
  },
  "oklch": {
    "l": 0.36481,
    "c": 0.08792,
    "h": 125.8
  },
  "luminance": 0.05097
}

Semantic roles & 50–950 ramp

primary
#334606
secondary
#402285
accent
#2DFA6A
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070901
muted
#7A7B77

Preview Lab

Preview with #334606

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

Preview Lab → · Contrast checker → · Palette generator →

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