#335118#335118

#335118 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.091 H 132.8°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#335118
RGBrgb(51, 81, 24)
HSLhsl(92, 54%, 21%)
HSVhsv(92, 70%, 32%)
CMYKcmyk(37%, 0%, 70.4%, 68.2%)
CIE-LABlab(31.01, -22.10, 29.05)
CIE-LCHlch(31.01, 36.51, 127.26°)
OKLaboklab(39.78% -0.0619 0.0668)
OKLCHoklch(39.78% 0.091 132.8)
XYZxyz(4.4725, 6.6544, 1.9128)
Luminance0.0665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335118 #361851
analogous
#4F5118 #335118 #185119
triadic
#335118 #183351 #511833
tetradic
#335118 #184F51 #361851 #511918
square
#335118 #184F51 #361851 #511918
split-complementary
#335118 #191851 #51184F
monochromatic
#0F1807 #15220A #335118 #518026 #6EAF34

Accessibility & contrast

On white

9.01
#335118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#335118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335118
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335118#FFFFFF#000000##FFFFFF
##3351181.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A11
Deuteranopia (green-blind)
#50481D
Tritanopia (blue-blind)
#334E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335118;
/* rgb */ color: rgb(51, 81, 24);
/* oklch */ color: oklch(39.8% 0.091 132.8);
Tailwind
colors: {
  custom: {
    50: '#6d8258',
    500: '#335118',
    950: '#000000',
  },
}
SCSS
$custom: #335118;
$custom-light: #6d8258;
$custom-dark: #000000;
JSON
{
  "hex": "#335118",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 91.579,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39775,
    "c": 0.09106,
    "h": 132.8
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

primary
#335118
secondary
#643D88
accent
#4ADE98
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335118

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

Preview Lab → · Contrast checker → · Palette generator →

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