#335F12#335F12

#335F12 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.7% C 0.116 H 135.1°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#335F12
RGBrgb(51, 95, 18)
HSLhsl(94, 68%, 22%)
HSVhsv(94, 81%, 37%)
CMYKcmyk(46.3%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.85, -29.33, 36.61)
CIE-LCHlch(35.85, 46.91, 128.70°)
OKLaboklab(43.72% -0.082 0.0817)
OKLCHoklch(43.72% 0.116 135.1)
XYZxyz(5.5665, 8.9316, 2.0028)
Luminance0.0893 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F12 #3E125F
analogous
#5A5F12 #335F12 #125F18
triadic
#335F12 #12335F #5F1233
tetradic
#335F12 #125A5F #3E125F #5F1812
square
#335F12 #125A5F #3E125F #5F1812
split-complementary
#335F12 #18125F #5F125A
monochromatic
#0E1A05 #172C08 #335F12 #4F921C #6AC625

Accessibility & contrast

On white

7.54
#335F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#335F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335F12
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F12#FFFFFF#000000##FFFFFF
##335F121.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635702
Deuteranopia (green-blind)
#5D531A
Tritanopia (blue-blind)
#325B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335f12;
/* rgb */ color: rgb(51, 95, 18);
/* oklch */ color: oklch(43.7% 0.116 135.1);
Tailwind
colors: {
  custom: {
    50: '#6f8d56',
    500: '#335f12',
    950: '#000000',
  },
}
SCSS
$custom: #335f12;
$custom-light: #6f8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#335f12",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 94.286,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43721,
    "c": 0.11575,
    "h": 135.1
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#335F12
secondary
#6D3697
accent
#3DEBA0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335F12

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

Preview Lab → · Contrast checker → · Palette generator →

#335F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva