#334D18#334D18

#334D18 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.085 H 131.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#334D18
RGBrgb(51, 77, 24)
HSLhsl(89, 52%, 20%)
HSVhsv(89, 69%, 30%)
CMYKcmyk(33.8%, 0%, 68.8%, 69.8%)
CIE-LABlab(29.61, -20.04, 27.53)
CIE-LCHlch(29.61, 34.05, 126.05°)
OKLaboklab(38.64% -0.0562 0.0636)
OKLCHoklch(38.64% 0.085 131.5)
XYZxyz(4.1839, 6.0774, 1.8166)
Luminance0.0608 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D18 #32184D
analogous
#4D4D18 #334D18 #194D18
triadic
#334D18 #18334D #4D1833
tetradic
#334D18 #184D4D #32184D #4D1819
square
#334D18 #184D4D #32184D #4D1819
split-complementary
#334D18 #18194D #4D184D
monochromatic
#0F1707 #141E09 #334D18 #527C27 #71AA35

Accessibility & contrast

On white

9.48
#334D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#334D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D18
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D18#FFFFFF#000000##FFFFFF
##334D181.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514712
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#344A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334d18;
/* rgb */ color: rgb(51, 77, 24);
/* oklch */ color: oklch(38.6% 0.085 131.5);
Tailwind
colors: {
  custom: {
    50: '#6d7f57',
    500: '#334d18',
    950: '#000000',
  },
}
SCSS
$custom: #334d18;
$custom-light: #6d7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#334d18",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 24
  },
  "hsl": {
    "h": 89.434,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38635,
    "c": 0.08486,
    "h": 131.5
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#334D18
secondary
#603D84
accent
#4CDC93
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334D18

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

Preview Lab → · Contrast checker → · Palette generator →

#334D18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva