#334F1E#334F1E

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

Color values

HEX#334F1E
RGBrgb(51, 79, 30)
HSLhsl(94, 45%, 21%)
HSVhsv(94, 62%, 31%)
CMYKcmyk(35.4%, 0%, 62%, 69%)
CIE-LABlab(30.37, -20.42, 25.24)
CIE-LCHlch(30.37, 32.46, 128.97°)
OKLaboklab(39.28% -0.0567 0.0594)
OKLCHoklch(39.28% 0.082 133.7)
XYZxyz(4.3955, 6.3893, 2.2297)
Luminance0.0639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F1E #3A1E4F
analogous
#4C4F1E #334F1E #1E4F22
triadic
#334F1E #1E334F #4F1E33
tetradic
#334F1E #1E4C4F #3A1E4F #4F221E
square
#334F1E #1E4C4F #3A1E4F #4F221E
split-complementary
#334F1E #221E4F #4F1E4C
monochromatic
#0E1608 #16230D #334F1E #507B2F #6CA840

Accessibility & contrast

On white

9.22
#334F1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334F1E
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F1E#FFFFFF#000000##FFFFFF
##334F1E1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524919
Deuteranopia (green-blind)
#4E4721
Tritanopia (blue-blind)
#334C44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334f1e;
/* rgb */ color: rgb(51, 79, 30);
/* oklch */ color: oklch(39.3% 0.082 133.7);
Tailwind
colors: {
  custom: {
    50: '#6d805b',
    500: '#334f1e',
    950: '#000000',
  },
}
SCSS
$custom: #334f1e;
$custom-light: #6d805b;
$custom-dark: #000000;
JSON
{
  "hex": "#334f1e",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 30
  },
  "hsl": {
    "h": 94.286,
    "s": 44.954,
    "l": 21.373
  },
  "oklch": {
    "l": 0.39281,
    "c": 0.08212,
    "h": 133.7
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

primary
#334F1E
secondary
#694584
accent
#53D59D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #334F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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