#335212#335212

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

Color values

HEX#335212
RGBrgb(51, 82, 18)
HSLhsl(89, 64%, 20%)
HSVhsv(89, 78%, 32%)
CMYKcmyk(37.8%, 0%, 78%, 67.8%)
CIE-LABlab(31.31, -23.13, 32.12)
CIE-LCHlch(31.31, 39.58, 125.76°)
OKLaboklab(40% -0.0652 0.0723)
OKLCHoklch(40% 0.097 132.1)
XYZxyz(4.4917, 6.7819, 1.6445)
Luminance0.0678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335212 #311252
analogous
#525112 #335212 #135212
triadic
#335212 #123352 #521233
tetradic
#335212 #125251 #311252 #521213
square
#335212 #125251 #311252 #521213
split-complementary
#335212 #121352 #511252
monochromatic
#101906 #142007 #335212 #52841D #71B628

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335212#FFFFFF#000000##FFFFFF
##3352121.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)
#564B07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#344E45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335212;
/* rgb */ color: rgb(51, 82, 18);
/* oklch */ color: oklch(40.0% 0.097 132.1);
Tailwind
colors: {
  custom: {
    50: '#6e8355',
    500: '#335212',
    950: '#000000',
  },
}
SCSS
$custom: #335212;
$custom-light: #6e8355;
$custom-dark: #000000;
JSON
{
  "hex": "#335212",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 89.063,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.09738,
    "h": 132.1
  },
  "luminance": 0.06782
}

Semantic roles & 50–950 ramp

primary
#335212
secondary
#5F358B
accent
#41E791
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335212

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

Preview Lab → · Contrast checker → · Palette generator →

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