#335B10#335B10

#335B10 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.6% C 0.111 H 134.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#335B10
RGBrgb(51, 91, 16)
HSLhsl(92, 70%, 21%)
HSVhsv(92, 82%, 36%)
CMYKcmyk(44%, 0%, 82.4%, 64.3%)
CIE-LABlab(34.44, -27.62, 35.99)
CIE-LCHlch(34.44, 45.37, 127.50°)
OKLaboklab(42.56% -0.0775 0.0801)
OKLCHoklch(42.56% 0.111 134.1)
XYZxyz(5.1998, 8.2231, 1.8034)
Luminance0.0822 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B10 #38105B
analogous
#585B10 #335B10 #105B12
triadic
#335B10 #10335B #5B1033
tetradic
#335B10 #10585B #38105B #5B1210
square
#335B10 #10585B #38105B #5B1210
split-complementary
#335B10 #12105B #5B1058
monochromatic
#0F1A05 #162707 #335B10 #508F19 #6DC322

Accessibility & contrast

On white

7.94
#335B10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#335B10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B10
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B10#FFFFFF#000000##FFFFFF
##335B101.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5301
Deuteranopia (green-blind)
#595018
Tritanopia (blue-blind)
#33574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335b10;
/* rgb */ color: rgb(51, 91, 16);
/* oklch */ color: oklch(42.6% 0.111 134.1);
Tailwind
colors: {
  custom: {
    50: '#6f8a55',
    500: '#335b10',
    950: '#000000',
  },
}
SCSS
$custom: #335b10;
$custom-light: #6f8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#335b10",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 16
  },
  "hsl": {
    "h": 92,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42562,
    "c": 0.11145,
    "h": 134.1
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#335B10
secondary
#673394
accent
#3BED9A
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335B10

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

Preview Lab → · Contrast checker → · Palette generator →

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