#335312#335312

#335312 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.3% C 0.099 H 132.3°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#335312
RGBrgb(51, 83, 18)
HSLhsl(90, 64%, 20%)
HSVhsv(90, 78%, 33%)
CMYKcmyk(38.6%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.66, -23.63, 32.48)
CIE-LCHlch(31.66, 40.16, 126.04°)
OKLaboklab(40.29% -0.0666 0.0731)
OKLCHoklch(40.29% 0.099 132.3)
XYZxyz(4.5676, 6.9338, 1.6698)
Luminance0.0693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335312 #321253
analogous
#535212 #335312 #135312
triadic
#335312 #123353 #531233
tetradic
#335312 #125352 #321253 #531213
square
#335312 #125352 #321253 #531213
split-complementary
#335312 #121353 #521253
monochromatic
#0F1905 #142107 #335312 #52851D #71B828

Accessibility & contrast

On white

8.80
#335312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#335312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335312
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335312#FFFFFF#000000##FFFFFF
##3353121.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#524A18
Tritanopia (blue-blind)
#344F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #335312;
/* rgb */ color: rgb(51, 83, 18);
/* oklch */ color: oklch(40.3% 0.099 132.3);
Tailwind
colors: {
  custom: {
    50: '#6e8355',
    500: '#335312',
    950: '#000000',
  },
}
SCSS
$custom: #335312;
$custom-light: #6e8355;
$custom-dark: #000000;
JSON
{
  "hex": "#335312",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 89.538,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40287,
    "c": 0.09884,
    "h": 132.3
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#335312
secondary
#60358C
accent
#40E793
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335312

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

Preview Lab → · Contrast checker → · Palette generator →

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