#334E0B#334E0B

#334E0B is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.096 H 129.8°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#334E0B
RGBrgb(51, 78, 11)
HSLhsl(84, 75%, 17%)
HSVhsv(84, 86%, 31%)
CMYKcmyk(34.6%, 0%, 85.9%, 69.4%)
CIE-LABlab(29.85, -21.58, 33.46)
CIE-LCHlch(29.85, 39.82, 122.82°)
OKLaboklab(38.8% -0.0616 0.0739)
OKLCHoklch(38.8% 0.096 129.8)
XYZxyz(4.1500, 6.1766, 1.2901)
Luminance0.0618 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E0B #260B4E
analogous
#4E470B #334E0B #124E0B
triadic
#334E0B #0B334E #4E0B33
tetradic
#334E0B #0B4E47 #260B4E #4E0B12
square
#334E0B #0B4E47 #260B4E #4E0B12
split-complementary
#334E0B #0B124E #470B4E
monochromatic
#121B04 #121B04 #334E0B #568413 #79B91A

Accessibility & contrast

On white

9.39
#334E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#334E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E0B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E0B#FFFFFF#000000##FFFFFF
##334E0B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4E4612
Tritanopia (blue-blind)
#354A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334e0b;
/* rgb */ color: rgb(51, 78, 11);
/* oklch */ color: oklch(38.8% 0.096 129.8);
Tailwind
colors: {
  custom: {
    50: '#6e7f50',
    500: '#334e0b',
    950: '#000000',
  },
}
SCSS
$custom: #334e0b;
$custom-light: #6e7f50;
$custom-dark: #000000;
JSON
{
  "hex": "#334e0b",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 11
  },
  "hsl": {
    "h": 84.179,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38803,
    "c": 0.09621,
    "h": 129.8
  },
  "luminance": 0.06177
}

Semantic roles & 50–950 ramp

primary
#334E0B
secondary
#512B8A
accent
#36F282
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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