#334F11#334F11

#334F11 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.1% C 0.094 H 130.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#334F11
RGBrgb(51, 79, 17)
HSLhsl(87, 65%, 19%)
HSVhsv(87, 78%, 31%)
CMYKcmyk(35.4%, 0%, 78.5%, 69%)
CIE-LABlab(30.25, -21.69, 31.49)
CIE-LCHlch(30.25, 38.23, 124.56°)
OKLaboklab(39.13% -0.0614 0.0708)
OKLCHoklch(39.13% 0.094 130.9)
XYZxyz(4.2624, 6.3361, 1.5286)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F11 #2D114F
analogous
#4F4C11 #334F11 #144F11
triadic
#334F11 #11334F #4F1133
tetradic
#334F11 #114F4C #2D114F #4F1114
square
#334F11 #114F4C #2D114F #4F1114
split-complementary
#334F11 #11144F #4C114F
monochromatic
#101905 #121D06 #334F11 #54811C #74B427

Accessibility & contrast

On white

9.26
#334F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#334F11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F11
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F11#FFFFFF#000000##FFFFFF
##334F111.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534907
Deuteranopia (green-blind)
#4F4617
Tritanopia (blue-blind)
#344B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334f11;
/* rgb */ color: rgb(51, 79, 17);
/* oklch */ color: oklch(39.1% 0.094 130.9);
Tailwind
colors: {
  custom: {
    50: '#6d8054',
    500: '#334f11',
    950: '#000000',
  },
}
SCSS
$custom: #334f11;
$custom-light: #6d8054;
$custom-dark: #000000;
JSON
{
  "hex": "#334f11",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 87.097,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39134,
    "c": 0.09372,
    "h": 130.9
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#334F11
secondary
#5A3388
accent
#40E88C
background
#F6F7F4
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334F11

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

Preview Lab → · Contrast checker → · Palette generator →

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