#335A0F#335A0F

#335A0F is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.3% C 0.111 H 133.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#335A0F
RGBrgb(51, 90, 15)
HSLhsl(91, 71%, 21%)
HSVhsv(91, 83%, 35%)
CMYKcmyk(43.3%, 0%, 83.3%, 64.7%)
CIE-LABlab(34.09, -27.21, 36.01)
CIE-LCHlch(34.09, 45.14, 127.08°)
OKLaboklab(42.27% -0.0765 0.0799)
OKLCHoklch(42.27% 0.111 133.7)
XYZxyz(5.1075, 8.0504, 1.7366)
Luminance0.0805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A0F #360F5A
analogous
#585A0F #335A0F #0F5A10
triadic
#335A0F #0F335A #5A0F33
tetradic
#335A0F #0F585A #360F5A #5A100F
square
#335A0F #0F585A #360F5A #5A100F
split-complementary
#335A0F #100F5A #5A0F58
monochromatic
#0F1A04 #152606 #335A0F #518E18 #6EC320

Accessibility & contrast

On white

8.05
#335A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#335A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A0F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A0F#FFFFFF#000000##FFFFFF
##335A0F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5200
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#33564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335a0f;
/* rgb */ color: rgb(51, 90, 15);
/* oklch */ color: oklch(42.3% 0.111 133.7);
Tailwind
colors: {
  custom: {
    50: '#6f8954',
    500: '#335a0f',
    950: '#000000',
  },
}
SCSS
$custom: #335a0f;
$custom-light: #6f8954;
$custom-dark: #000000;
JSON
{
  "hex": "#335a0f",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 91.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42269,
    "c": 0.11066,
    "h": 133.7
  },
  "luminance": 0.08051
}

Semantic roles & 50–950 ramp

primary
#335A0F
secondary
#643194
accent
#3AEE98
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #335A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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