#335D0F#335D0F

#335D0F is a dark, moderate yellow-green. Relative luminance 0.086; OKLCH L 43.1% C 0.115 H 134.4°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#335D0F
RGBrgb(51, 93, 15)
HSLhsl(92, 72%, 21%)
HSVhsv(92, 84%, 36%)
CMYKcmyk(45.2%, 0%, 83.9%, 63.5%)
CIE-LABlab(35.14, -28.61, 37.00)
CIE-LCHlch(35.14, 46.77, 127.71°)
OKLaboklab(43.13% -0.0803 0.082)
OKLCHoklch(43.13% 0.115 134.4)
XYZxyz(5.3657, 8.5667, 1.8227)
Luminance0.0857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335D0F #390F5D
analogous
#5A5D0F #335D0F #0F5D12
triadic
#335D0F #0F335D #5D0F33
tetradic
#335D0F #0F5A5D #390F5D #5D120F
square
#335D0F #0F5A5D #390F5D #5D120F
split-complementary
#335D0F #120F5D #5D0F5A
monochromatic
#0E1A04 #162806 #335D0F #509217 #6DC620

Accessibility & contrast

On white

7.74
#335D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#335D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335D0F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335D0F#FFFFFF#000000##FFFFFF
##335D0F1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615500
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#32594F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335d0f;
/* rgb */ color: rgb(51, 93, 15);
/* oklch */ color: oklch(43.1% 0.115 134.4);
Tailwind
colors: {
  custom: {
    50: '#6f8b55',
    500: '#335d0f',
    950: '#000000',
  },
}
SCSS
$custom: #335d0f;
$custom-light: #6f8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#335d0f",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 92.308,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43128,
    "c": 0.11476,
    "h": 134.4
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#335D0F
secondary
#683196
accent
#39EF9B
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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