#335811#335811

#335811 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.7% C 0.107 H 133.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#335811
RGBrgb(51, 88, 17)
HSLhsl(91, 68%, 21%)
HSVhsv(91, 81%, 35%)
CMYKcmyk(42%, 0%, 80.7%, 65.5%)
CIE-LABlab(33.40, -26.13, 34.61)
CIE-LCHlch(33.40, 43.37, 127.06°)
OKLaboklab(41.71% -0.0734 0.0773)
OKLCHoklch(41.71% 0.107 133.5)
XYZxyz(4.9561, 7.7235, 1.7599)
Luminance0.0772 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335811 #361158
analogous
#565811 #335811 #115813
triadic
#335811 #113358 #581133
tetradic
#335811 #115658 #361158 #581311
square
#335811 #115658 #361158 #581311
split-complementary
#335811 #131158 #581156
monochromatic
#0F1A05 #152507 #335811 #518B1B #6EBF25

Accessibility & contrast

On white

8.25
#335811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#335811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335811
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335811#FFFFFF#000000##FFFFFF
##3358111.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5004
Deuteranopia (green-blind)
#574D18
Tritanopia (blue-blind)
#33544A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335811;
/* rgb */ color: rgb(51, 88, 17);
/* oklch */ color: oklch(41.7% 0.107 133.5);
Tailwind
colors: {
  custom: {
    50: '#6f8755',
    500: '#335811',
    950: '#000000',
  },
}
SCSS
$custom: #335811;
$custom-light: #6f8755;
$custom-dark: #000000;
JSON
{
  "hex": "#335811",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 17
  },
  "hsl": {
    "h": 91.268,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.4171,
    "c": 0.10666,
    "h": 133.5
  },
  "luminance": 0.07724
}

Semantic roles & 50–950 ramp

primary
#335811
secondary
#643491
accent
#3DEA98
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #335811

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

Preview Lab → · Contrast checker → · Palette generator →

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