#335919#335919

#335919 is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.1% C 0.102 H 135.0°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#335919
RGBrgb(51, 89, 25)
HSLhsl(96, 56%, 22%)
HSVhsv(96, 72%, 35%)
CMYKcmyk(42.7%, 0%, 71.9%, 65.1%)
CIE-LABlab(33.81, -25.96, 31.59)
CIE-LCHlch(33.81, 40.89, 129.42°)
OKLaboklab(42.07% -0.0723 0.0723)
OKLCHoklch(42.07% 0.102 135)
XYZxyz(5.1130, 7.9185, 2.1785)
Luminance0.0792 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335919 #3F1959
analogous
#535919 #335919 #19591F
triadic
#335919 #193359 #591933
tetradic
#335919 #195359 #3F1959 #591F19
square
#335919 #195359 #3F1959 #591F19
split-complementary
#335919 #1F1959 #591953
monochromatic
#0E1807 #18290C #335919 #4E8926 #6AB934

Accessibility & contrast

On white

8.13
#335919 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#335919 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335919
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335919#FFFFFF#000000##FFFFFF
##3359191.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5110
Deuteranopia (green-blind)
#574E1E
Tritanopia (blue-blind)
#32554C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335919;
/* rgb */ color: rgb(51, 89, 25);
/* oklch */ color: oklch(42.1% 0.102 135.0);
Tailwind
colors: {
  custom: {
    50: '#6e8859',
    500: '#335919',
    950: '#000000',
  },
}
SCSS
$custom: #335919;
$custom-light: #6e8859;
$custom-dark: #000000;
JSON
{
  "hex": "#335919",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 25
  },
  "hsl": {
    "h": 95.625,
    "s": 56.14,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42068,
    "c": 0.10224,
    "h": 135
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#335919
secondary
#6E3E8F
accent
#48DFA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #335919

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

Preview Lab → · Contrast checker → · Palette generator →

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