#335017#335017

#335017 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.5% C 0.090 H 132.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#335017
RGBrgb(51, 80, 23)
HSLhsl(91, 55%, 20%)
HSVhsv(91, 71%, 31%)
CMYKcmyk(36.3%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.65, -21.69, 29.15)
CIE-LCHlch(30.65, 36.34, 126.65°)
OKLaboklab(39.48% -0.0608 0.0669)
OKLCHoklch(39.48% 0.09 132.3)
XYZxyz(4.3885, 6.5028, 1.8344)
Luminance0.0650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335017 #341750
analogous
#505017 #335017 #175017
triadic
#335017 #173350 #501733
tetradic
#335017 #175050 #341750 #501717
square
#335017 #175050 #341750 #501717
split-complementary
#335017 #171750 #501750
monochromatic
#0F1807 #152009 #335017 #518025 #70AF32

Accessibility & contrast

On white

9.13
#335017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#335017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335017
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335017#FFFFFF#000000##FFFFFF
##3350171.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A10
Deuteranopia (green-blind)
#50471C
Tritanopia (blue-blind)
#344D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #335017;
/* rgb */ color: rgb(51, 80, 23);
/* oklch */ color: oklch(39.5% 0.090 132.3);
Tailwind
colors: {
  custom: {
    50: '#6d8157',
    500: '#335017',
    950: '#000000',
  },
}
SCSS
$custom: #335017;
$custom-light: #6d8157;
$custom-dark: #000000;
JSON
{
  "hex": "#335017",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 90.526,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39478,
    "c": 0.09041,
    "h": 132.3
  },
  "luminance": 0.06503
}

Semantic roles & 50–950 ramp

primary
#335017
secondary
#623C87
accent
#49DF95
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335017

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

Preview Lab → · Contrast checker → · Palette generator →

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