#335E0F#335E0F

#335E0F is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.4% C 0.116 H 134.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#335E0F
RGBrgb(51, 94, 15)
HSLhsl(93, 72%, 21%)
HSVhsv(93, 84%, 37%)
CMYKcmyk(45.7%, 0%, 84%, 63.1%)
CIE-LABlab(35.49, -29.06, 37.33)
CIE-LCHlch(35.49, 47.31, 127.90°)
OKLaboklab(43.41% -0.0815 0.0827)
OKLCHoklch(43.41% 0.116 134.6)
XYZxyz(5.4541, 8.7434, 1.8521)
Luminance0.0874 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E0F #3A0F5E
analogous
#5B5E0F #335E0F #0F5E13
triadic
#335E0F #0F335E #5E0F33
tetradic
#335E0F #0F5B5E #3A0F5E #5E130F
square
#335E0F #0F5B5E #3A0F5E #5E130F
split-complementary
#335E0F #130F5E #5E0F5B
monochromatic
#0E1A04 #162907 #335E0F #509317 #6CC820

Accessibility & contrast

On white

7.64
#335E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335E0F
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E0F#FFFFFF#000000##FFFFFF
##335E0F1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#325A4F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335e0f;
/* rgb */ color: rgb(51, 94, 15);
/* oklch */ color: oklch(43.4% 0.116 134.6);
Tailwind
colors: {
  custom: {
    50: '#6f8c55',
    500: '#335e0f',
    950: '#000000',
  },
}
SCSS
$custom: #335e0f;
$custom-light: #6f8c55;
$custom-dark: #000000;
JSON
{
  "hex": "#335e0f",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 15
  },
  "hsl": {
    "h": 92.658,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.43414,
    "c": 0.11612,
    "h": 134.6
  },
  "luminance": 0.08744
}

Semantic roles & 50–950 ramp

primary
#335E0F
secondary
#693197
accent
#39EF9C
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #335E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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