#334712#334712

#334712 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.081 H 127.7°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#334712
RGBrgb(51, 71, 18)
HSLhsl(83, 60%, 17%)
HSVhsv(83, 75%, 28%)
CMYKcmyk(28.2%, 0%, 74.6%, 72.2%)
CIE-LABlab(27.45, -17.39, 28.17)
CIE-LCHlch(27.45, 33.10, 121.69°)
OKLaboklab(36.86% -0.0495 0.064)
OKLCHoklch(36.86% 0.081 127.7)
XYZxyz(3.7277, 5.2539, 1.3899)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334712 #261247
analogous
#474112 #334712 #184712
triadic
#334712 #123347 #471233
tetradic
#334712 #124741 #261247 #471218
square
#334712 #124741 #261247 #471218
split-complementary
#334712 #121847 #411247
monochromatic
#121806 #121806 #334712 #56781E #79A92B

Accessibility & contrast

On white

10.24
#334712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334712
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334712#FFFFFF#000000##FFFFFF
##3347121.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420B
Deuteranopia (green-blind)
#484016
Tritanopia (blue-blind)
#35433C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334712;
/* rgb */ color: rgb(51, 71, 18);
/* oklch */ color: oklch(36.9% 0.081 127.7);
Tailwind
colors: {
  custom: {
    50: '#6d7a53',
    500: '#334712',
    950: '#000000',
  },
}
SCSS
$custom: #334712;
$custom-light: #6d7a53;
$custom-dark: #000000;
JSON
{
  "hex": "#334712",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 18
  },
  "hsl": {
    "h": 82.642,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36862,
    "c": 0.08095,
    "h": 127.7
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#334712
secondary
#513580
accent
#45E381
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334712

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

Preview Lab → · Contrast checker → · Palette generator →

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