#335214#335214

#335214 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.096 H 132.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#335214
RGBrgb(51, 82, 20)
HSLhsl(90, 61%, 20%)
HSVhsv(90, 76%, 32%)
CMYKcmyk(37.8%, 0%, 75.6%, 67.8%)
CIE-LABlab(31.32, -22.97, 31.26)
CIE-LCHlch(31.32, 38.80, 126.31°)
OKLaboklab(40.02% -0.0646 0.0708)
OKLCHoklch(40.02% 0.096 132.4)
XYZxyz(4.5087, 6.7887, 1.7345)
Luminance0.0679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335214 #331452
analogous
#525214 #335214 #145214
triadic
#335214 #143352 #521433
tetradic
#335214 #145252 #331452 #521414
square
#335214 #145252 #331452 #521414
split-complementary
#335214 #141452 #521452
monochromatic
#0F1906 #142108 #335214 #528320 #70B42C

Accessibility & contrast

On white

8.91
#335214 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#335214 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335214
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335214#FFFFFF#000000##FFFFFF
##3352141.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B0A
Deuteranopia (green-blind)
#514919
Tritanopia (blue-blind)
#344E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335214;
/* rgb */ color: rgb(51, 82, 20);
/* oklch */ color: oklch(40.0% 0.096 132.4);
Tailwind
colors: {
  custom: {
    50: '#6e8356',
    500: '#335214',
    950: '#000000',
  },
}
SCSS
$custom: #335214;
$custom-light: #6e8356;
$custom-dark: #000000;
JSON
{
  "hex": "#335214",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 20
  },
  "hsl": {
    "h": 90,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.40019,
    "c": 0.09588,
    "h": 132.4
  },
  "luminance": 0.06789
}

Semantic roles & 50–950 ramp

primary
#335214
secondary
#61388A
accent
#44E494
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335214

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

Preview Lab → · Contrast checker → · Palette generator →

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