#335121#335121

#335121 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.9% C 0.082 H 135.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#335121
RGBrgb(51, 81, 33)
HSLhsl(98, 42%, 22%)
HSVhsv(98, 59%, 32%)
CMYKcmyk(37%, 0%, 59.3%, 68.2%)
CIE-LABlab(31.11, -21.09, 24.46)
CIE-LCHlch(31.11, 32.29, 130.77°)
OKLaboklab(39.89% -0.0583 0.058)
OKLCHoklch(39.89% 0.082 135.1)
XYZxyz(4.5821, 6.6983, 2.4900)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335121 #3F2151
analogous
#4B5121 #335121 #215127
triadic
#335121 #213351 #512133
tetradic
#335121 #214B51 #3F2151 #512721
square
#335121 #214B51 #3F2151 #512721
split-complementary
#335121 #272151 #51214B
monochromatic
#0E1609 #18260F #335121 #4E7C33 #6AA844

Accessibility & contrast

On white

8.98
#335121 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#335121 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335121
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335121#FFFFFF#000000##FFFFFF
##3351211.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B1C
Deuteranopia (green-blind)
#504824
Tritanopia (blue-blind)
#334E46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335121;
/* rgb */ color: rgb(51, 81, 33);
/* oklch */ color: oklch(39.9% 0.082 135.1);
Tailwind
colors: {
  custom: {
    50: '#6d825e',
    500: '#335121',
    950: '#000000',
  },
}
SCSS
$custom: #335121;
$custom-light: #6d825e;
$custom-dark: #000000;
JSON
{
  "hex": "#335121",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 33
  },
  "hsl": {
    "h": 97.5,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.39892,
    "c": 0.08223,
    "h": 135.1
  },
  "luminance": 0.06698
}

Semantic roles & 50–950 ramp

primary
#335121
secondary
#6E4985
accent
#56D2A3
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #335121

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

Preview Lab → · Contrast checker → · Palette generator →

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