#335A10#335A10

#335A10 is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.110 H 133.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#335A10
RGBrgb(51, 90, 16)
HSLhsl(92, 70%, 21%)
HSVhsv(92, 82%, 35%)
CMYKcmyk(43.3%, 0%, 82.2%, 64.7%)
CIE-LABlab(34.09, -27.15, 35.66)
CIE-LCHlch(34.09, 44.82, 127.29°)
OKLaboklab(42.28% -0.0763 0.0794)
OKLCHoklch(42.28% 0.11 133.9)
XYZxyz(5.1148, 8.0533, 1.7750)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A10 #37105A
analogous
#585A10 #335A10 #105A12
triadic
#335A10 #10335A #5A1033
tetradic
#335A10 #10585A #37105A #5A1210
square
#335A10 #10585A #37105A #5A1210
split-complementary
#335A10 #12105A #5A1058
monochromatic
#0F1A05 #162607 #335A10 #508E19 #6EC222

Accessibility & contrast

On white

8.04
#335A10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#335A10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A10
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A10#FFFFFF#000000##FFFFFF
##335A101.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5201
Deuteranopia (green-blind)
#594F18
Tritanopia (blue-blind)
#33564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a10;
/* rgb */ color: rgb(51, 90, 16);
/* oklch */ color: oklch(42.3% 0.110 133.9);
Tailwind
colors: {
  custom: {
    50: '#6f8955',
    500: '#335a10',
    950: '#000000',
  },
}
SCSS
$custom: #335a10;
$custom-light: #6f8955;
$custom-dark: #000000;
JSON
{
  "hex": "#335a10",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 16
  },
  "hsl": {
    "h": 91.622,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42276,
    "c": 0.11008,
    "h": 133.9
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#335A10
secondary
#663393
accent
#3BED99
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335A10

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

Preview Lab → · Contrast checker → · Palette generator →

#335A10 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva