#334718#334718

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

Color values

HEX#334718
RGBrgb(51, 71, 24)
HSLhsl(86, 49%, 19%)
HSVhsv(86, 66%, 28%)
CMYKcmyk(28.2%, 0%, 66.2%, 72.2%)
CIE-LABlab(27.51, -16.81, 25.19)
CIE-LCHlch(27.51, 30.29, 123.72°)
OKLaboklab(36.93% -0.0473 0.0586)
OKLCHoklch(36.93% 0.075 128.9)
XYZxyz(3.7833, 5.2761, 1.6830)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334718 #2C1847
analogous
#474318 #334718 #1B4718
triadic
#334718 #183347 #471833
tetradic
#334718 #184743 #2C1847 #47181B
square
#334718 #184743 #2C1847 #47181B
split-complementary
#334718 #181B47 #431847
monochromatic
#101708 #121909 #334718 #547527 #75A237

Accessibility & contrast

On white

10.22
#334718 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#334718 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334718
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334718#FFFFFF#000000##FFFFFF
##3347181.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4213
Deuteranopia (green-blind)
#48411B
Tritanopia (blue-blind)
#35443D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334718;
/* rgb */ color: rgb(51, 71, 24);
/* oklch */ color: oklch(36.9% 0.075 128.9);
Tailwind
colors: {
  custom: {
    50: '#6c7a57',
    500: '#334718',
    950: '#000000',
  },
}
SCSS
$custom: #334718;
$custom-light: #6c7a57;
$custom-dark: #000000;
JSON
{
  "hex": "#334718",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 24
  },
  "hsl": {
    "h": 85.532,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.36931,
    "c": 0.07533,
    "h": 128.9
  },
  "luminance": 0.05276
}

Semantic roles & 50–950 ramp

primary
#334718
secondary
#593D7E
accent
#4FD98A
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334718

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

Preview Lab → · Contrast checker → · Palette generator →

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