#334F20#334F20

#334F20 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.080 H 134.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#334F20
RGBrgb(51, 79, 32)
HSLhsl(96, 42%, 22%)
HSVhsv(96, 59%, 31%)
CMYKcmyk(35.4%, 0%, 59.5%, 69%)
CIE-LABlab(30.40, -20.17, 24.17)
CIE-LCHlch(30.40, 31.48, 129.85°)
OKLaboklab(39.31% -0.0559 0.0573)
OKLCHoklch(39.31% 0.08 134.3)
XYZxyz(4.4218, 6.3999, 2.3685)
Luminance0.0640 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F20 #3C204F
analogous
#4B4F20 #334F20 #204F25
triadic
#334F20 #20334F #4F2033
tetradic
#334F20 #204B4F #3C204F #4F2520
square
#334F20 #204B4F #3C204F #4F2520
split-complementary
#334F20 #25204F #4F204B
monochromatic
#0E1609 #17230E #334F20 #4F7B32 #6BA643

Accessibility & contrast

On white

9.21
#334F20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#334F20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F20
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F20#FFFFFF#000000##FFFFFF
##334F201.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491C
Deuteranopia (green-blind)
#4E4723
Tritanopia (blue-blind)
#334C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334f20;
/* rgb */ color: rgb(51, 79, 32);
/* oklch */ color: oklch(39.3% 0.080 134.3);
Tailwind
colors: {
  custom: {
    50: '#6d805d',
    500: '#334f20',
    950: '#000000',
  },
}
SCSS
$custom: #334f20;
$custom-light: #6d805d;
$custom-dark: #000000;
JSON
{
  "hex": "#334f20",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 32
  },
  "hsl": {
    "h": 95.745,
    "s": 42.342,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3931,
    "c": 0.08001,
    "h": 134.3
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#334F20
secondary
#6B4783
accent
#56D2A0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #334F20

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

Preview Lab → · Contrast checker → · Palette generator →

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