#335018#335018

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

Color values

HEX#335018
RGBrgb(51, 80, 24)
HSLhsl(91, 54%, 20%)
HSVhsv(91, 70%, 31%)
CMYKcmyk(36.3%, 0%, 70%, 68.6%)
CIE-LABlab(30.66, -21.59, 28.68)
CIE-LCHlch(30.66, 35.90, 126.98°)
OKLaboklab(39.49% -0.0605 0.066)
OKLCHoklch(39.49% 0.09 132.5)
XYZxyz(4.3987, 6.5069, 1.8882)
Luminance0.0651 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335018 #351850
analogous
#4F5018 #335018 #185019
triadic
#335018 #183350 #501833
tetradic
#335018 #184F50 #351850 #501918
square
#335018 #184F50 #351850 #501918
split-complementary
#335018 #191850 #50184F
monochromatic
#0F1807 #15210A #335018 #517F26 #6FAE34

Accessibility & contrast

On white

9.12
#335018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335018
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335018#FFFFFF#000000##FFFFFF
##3350181.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A11
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#344D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #335018;
/* rgb */ color: rgb(51, 80, 24);
/* oklch */ color: oklch(39.5% 0.090 132.5);
Tailwind
colors: {
  custom: {
    50: '#6d8158',
    500: '#335018',
    950: '#000000',
  },
}
SCSS
$custom: #335018;
$custom-light: #6d8158;
$custom-dark: #000000;
JSON
{
  "hex": "#335018",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 24
  },
  "hsl": {
    "h": 91.071,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3949,
    "c": 0.08952,
    "h": 132.5
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#335018
secondary
#633D87
accent
#4BDD97
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335018

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

Preview Lab → · Contrast checker → · Palette generator →

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