#335213#335213

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

Color values

HEX#335213
RGBrgb(51, 82, 19)
HSLhsl(90, 62%, 20%)
HSVhsv(90, 77%, 32%)
CMYKcmyk(37.8%, 0%, 76.8%, 67.8%)
CIE-LABlab(31.31, -23.05, 31.70)
CIE-LCHlch(31.31, 39.20, 126.03°)
OKLaboklab(40.01% -0.0649 0.0716)
OKLCHoklch(40.01% 0.097 132.2)
XYZxyz(4.5000, 6.7852, 1.6885)
Luminance0.0678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335213 #321352
analogous
#525213 #335213 #135213
triadic
#335213 #133352 #521333
tetradic
#335213 #135252 #321352 #521313
square
#335213 #135252 #321352 #521313
split-complementary
#335213 #131352 #521352
monochromatic
#0F1906 #142007 #335213 #52841F #71B52A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335213#FFFFFF#000000##FFFFFF
##3352131.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)
#564B09
Deuteranopia (green-blind)
#514919
Tritanopia (blue-blind)
#344E46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335213;
/* rgb */ color: rgb(51, 82, 19);
/* oklch */ color: oklch(40.0% 0.097 132.2);
Tailwind
colors: {
  custom: {
    50: '#6e8355',
    500: '#335213',
    950: '#000000',
  },
}
SCSS
$custom: #335213;
$custom-light: #6e8355;
$custom-dark: #000000;
JSON
{
  "hex": "#335213",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 89.524,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.4001,
    "c": 0.09664,
    "h": 132.2
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#335213
secondary
#60368A
accent
#42E593
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335213

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

Preview Lab → · Contrast checker → · Palette generator →

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