#334707#334707

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

Color values

HEX#334707
RGBrgb(51, 71, 7)
HSLhsl(79, 82%, 15%)
HSVhsv(79, 90%, 28%)
CMYKcmyk(28.2%, 0%, 90.1%, 72.2%)
CIE-LABlab(27.37, -18.14, 32.65)
CIE-LCHlch(27.37, 37.35, 119.05°)
OKLaboklab(36.77% -0.0526 0.0714)
OKLCHoklch(36.77% 0.089 126.4)
XYZxyz(3.6569, 5.2256, 1.0169)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334707 #1B0747
analogous
#473B07 #334707 #134707
triadic
#334707 #073347 #470733
tetradic
#334707 #07473B #1B0747 #470713
square
#334707 #07473B #1B0747 #470713
split-complementary
#334707 #071347 #3B0747
monochromatic
#141C03 #141C03 #334707 #5B7F0C #83B612

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334707#FFFFFF#000000##FFFFFF
##3347071.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)
#49400E
Tritanopia (blue-blind)
#36433B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334707;
/* rgb */ color: rgb(51, 71, 7);
/* oklch */ color: oklch(36.8% 0.089 126.4);
Tailwind
colors: {
  custom: {
    50: '#6d7a4d',
    500: '#334707',
    950: '#000000',
  },
}
SCSS
$custom: #334707;
$custom-light: #6d7a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#334707",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 7
  },
  "hsl": {
    "h": 78.75,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.36774,
    "c": 0.08868,
    "h": 126.4
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#334707
secondary
#432486
accent
#2FF86E
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334707

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

Preview Lab → · Contrast checker → · Palette generator →

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