#335012#335012

#335012 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.094 H 131.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#335012
RGBrgb(51, 80, 18)
HSLhsl(88, 63%, 19%)
HSVhsv(88, 78%, 31%)
CMYKcmyk(36.3%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.60, -22.12, 31.41)
CIE-LCHlch(30.60, 38.42, 125.16°)
OKLaboklab(39.43% -0.0625 0.0708)
OKLCHoklch(39.43% 0.094 131.4)
XYZxyz(4.3430, 6.4846, 1.5950)
Luminance0.0649 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335012 #2F1250
analogous
#504E12 #335012 #145012
triadic
#335012 #123350 #501233
tetradic
#335012 #12504E #2F1250 #501214
square
#335012 #12504E #2F1250 #501214
split-complementary
#335012 #121450 #4E1250
monochromatic
#101906 #131E07 #335012 #53821D #73B428

Accessibility & contrast

On white

9.14
#335012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#335012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335012
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335012#FFFFFF#000000##FFFFFF
##3350121.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544908
Deuteranopia (green-blind)
#504718
Tritanopia (blue-blind)
#344C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #335012;
/* rgb */ color: rgb(51, 80, 18);
/* oklch */ color: oklch(39.4% 0.094 131.4);
Tailwind
colors: {
  custom: {
    50: '#6e8154',
    500: '#335012',
    950: '#000000',
  },
}
SCSS
$custom: #335012;
$custom-light: #6e8154;
$custom-dark: #000000;
JSON
{
  "hex": "#335012",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 88.065,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39429,
    "c": 0.09446,
    "h": 131.4
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#335012
secondary
#5C3589
accent
#41E68F
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #335012

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

Preview Lab → · Contrast checker → · Palette generator →

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