#334F12#334F12

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

Color values

HEX#334F12
RGBrgb(51, 79, 18)
HSLhsl(88, 63%, 19%)
HSVhsv(88, 77%, 31%)
CMYKcmyk(35.4%, 0%, 77.2%, 69%)
CIE-LABlab(30.25, -21.61, 31.06)
CIE-LCHlch(30.25, 37.84, 124.83°)
OKLaboklab(39.14% -0.0611 0.0701)
OKLCHoklch(39.14% 0.093 131.1)
XYZxyz(4.2704, 6.3393, 1.5708)
Luminance0.0634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F12 #2E124F
analogous
#4F4D12 #334F12 #154F12
triadic
#334F12 #12334F #4F1233
tetradic
#334F12 #124F4D #2E124F #4F1215
square
#334F12 #124F4D #2E124F #4F1215
split-complementary
#334F12 #12154F #4D124F
monochromatic
#101906 #131D07 #334F12 #53811D #73B329

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334F12#FFFFFF#000000##FFFFFF
##334F121.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)
#534908
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#344B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334f12;
/* rgb */ color: rgb(51, 79, 18);
/* oklch */ color: oklch(39.1% 0.093 131.1);
Tailwind
colors: {
  custom: {
    50: '#6d8054',
    500: '#334f12',
    950: '#000000',
  },
}
SCSS
$custom: #334f12;
$custom-light: #6d8054;
$custom-dark: #000000;
JSON
{
  "hex": "#334f12",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 87.541,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39143,
    "c": 0.09298,
    "h": 131.1
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#334F12
secondary
#5B3588
accent
#42E68D
background
#F6F7F5
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334F12

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

Preview Lab → · Contrast checker → · Palette generator →

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