#335112#335112

#335112 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.7% C 0.096 H 131.7°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#335112
RGBrgb(51, 81, 18)
HSLhsl(89, 64%, 19%)
HSVhsv(89, 78%, 32%)
CMYKcmyk(37%, 0%, 77.8%, 68.2%)
CIE-LABlab(30.95, -22.63, 31.77)
CIE-LCHlch(30.95, 39.01, 125.46°)
OKLaboklab(39.72% -0.0639 0.0716)
OKLCHoklch(39.72% 0.096 131.7)
XYZxyz(4.4168, 6.6322, 1.6196)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335112 #301251
analogous
#515012 #335112 #145112
triadic
#335112 #123351 #511233
tetradic
#335112 #125150 #301251 #511214
square
#335112 #125150 #301251 #511214
split-complementary
#335112 #121451 #501251
monochromatic
#101906 #131F07 #335112 #53831D #72B528

Accessibility & contrast

On white

9.03
#335112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335112
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335112#FFFFFF#000000##FFFFFF
##3351121.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#344D45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #335112;
/* rgb */ color: rgb(51, 81, 18);
/* oklch */ color: oklch(39.7% 0.096 131.7);
Tailwind
colors: {
  custom: {
    50: '#6e8254',
    500: '#335112',
    950: '#000000',
  },
}
SCSS
$custom: #335112;
$custom-light: #6e8254;
$custom-dark: #000000;
JSON
{
  "hex": "#335112",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 88.571,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39715,
    "c": 0.09592,
    "h": 131.7
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#335112
secondary
#5D358A
accent
#41E790
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335112

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

Preview Lab → · Contrast checker → · Palette generator →

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