#334811#334811

#334811 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.083 H 128.1°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#334811
RGBrgb(51, 72, 17)
HSLhsl(83, 62%, 17%)
HSVhsv(83, 76%, 28%)
CMYKcmyk(29.2%, 0%, 76.4%, 71.8%)
CIE-LABlab(27.79, -18.02, 28.99)
CIE-LCHlch(27.79, 34.13, 121.86°)
OKLaboklab(37.14% -0.0514 0.0656)
OKLCHoklch(37.14% 0.083 128.1)
XYZxyz(3.7838, 5.3789, 1.3691)
Luminance0.0538 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334811 #261148
analogous
#484211 #334811 #184811
triadic
#334811 #113348 #481133
tetradic
#334811 #114842 #261148 #481118
square
#334811 #114842 #261148 #481118
split-complementary
#334811 #111848 #421148
monochromatic
#121906 #121906 #334811 #567A1D #79AB28

Accessibility & contrast

On white

10.12
#334811 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#334811 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334811
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334811#FFFFFF#000000##FFFFFF
##3348111.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4209
Deuteranopia (green-blind)
#494116
Tritanopia (blue-blind)
#35443D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334811;
/* rgb */ color: rgb(51, 72, 17);
/* oklch */ color: oklch(37.1% 0.083 128.1);
Tailwind
colors: {
  custom: {
    50: '#6d7b53',
    500: '#334811',
    950: '#000000',
  },
}
SCSS
$custom: #334811;
$custom-light: #6d7b53;
$custom-dark: #000000;
JSON
{
  "hex": "#334811",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 17
  },
  "hsl": {
    "h": 82.909,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37137,
    "c": 0.0833,
    "h": 128.1
  },
  "luminance": 0.05379
}

Semantic roles & 50–950 ramp

primary
#334811
secondary
#513382
accent
#43E581
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334811

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

Preview Lab → · Contrast checker → · Palette generator →

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