#334715#334715

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

Color values

HEX#334715
RGBrgb(51, 71, 21)
HSLhsl(84, 54%, 18%)
HSVhsv(84, 70%, 28%)
CMYKcmyk(28.2%, 0%, 70.4%, 72.2%)
CIE-LABlab(27.47, -17.12, 26.72)
CIE-LCHlch(27.47, 31.73, 122.65°)
OKLaboklab(36.9% -0.0485 0.0614)
OKLCHoklch(36.9% 0.078 128.3)
XYZxyz(3.7538, 5.2643, 1.5277)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334715 #291547
analogous
#474215 #334715 #1A4715
triadic
#334715 #153347 #471533
tetradic
#334715 #154742 #291547 #47151A
square
#334715 #154742 #291547 #47151A
split-complementary
#334715 #151A47 #421547
monochromatic
#111807 #111807 #334715 #557623 #77A531

Accessibility & contrast

On white

10.23
#334715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334715
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334715#FFFFFF#000000##FFFFFF
##3347151.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420F
Deuteranopia (green-blind)
#484019
Tritanopia (blue-blind)
#35443D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334715;
/* rgb */ color: rgb(51, 71, 21);
/* oklch */ color: oklch(36.9% 0.078 128.3);
Tailwind
colors: {
  custom: {
    50: '#6c7a55',
    500: '#334715',
    950: '#000000',
  },
}
SCSS
$custom: #334715;
$custom-light: #6c7a55;
$custom-dark: #000000;
JSON
{
  "hex": "#334715",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 21
  },
  "hsl": {
    "h": 84,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36895,
    "c": 0.07826,
    "h": 128.3
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#334715
secondary
#55397F
accent
#4ADE85
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334715

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

Preview Lab → · Contrast checker → · Palette generator →

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