#334D12#334D12

#334D12 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.090 H 130.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#334D12
RGBrgb(51, 77, 18)
HSLhsl(86, 62%, 19%)
HSVhsv(86, 77%, 30%)
CMYKcmyk(33.8%, 0%, 76.6%, 69.8%)
CIE-LABlab(29.55, -20.58, 30.34)
CIE-LCHlch(29.55, 36.67, 124.15°)
OKLaboklab(38.57% -0.0583 0.0686)
OKLCHoklch(38.57% 0.09 130.4)
XYZxyz(4.1283, 6.0551, 1.5234)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D12 #2C124D
analogous
#4D4912 #334D12 #154D12
triadic
#334D12 #12334D #4D1233
tetradic
#334D12 #124D49 #2C124D #4D1215
square
#334D12 #124D49 #2C124D #4D1215
split-complementary
#334D12 #12154D #49124D
monochromatic
#101906 #121B06 #334D12 #547F1E #75B029

Accessibility & contrast

On white

9.50
#334D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#334D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D12
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D12#FFFFFF#000000##FFFFFF
##334D121.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514709
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#344941
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334d12;
/* rgb */ color: rgb(51, 77, 18);
/* oklch */ color: oklch(38.6% 0.090 130.4);
Tailwind
colors: {
  custom: {
    50: '#6d7f54',
    500: '#334d12',
    950: '#000000',
  },
}
SCSS
$custom: #334d12;
$custom-light: #6d7f54;
$custom-dark: #000000;
JSON
{
  "hex": "#334d12",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 18
  },
  "hsl": {
    "h": 86.441,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38572,
    "c": 0.09001,
    "h": 130.4
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#334D12
secondary
#593586
accent
#43E58A
background
#F6F7F4
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334D12

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

Preview Lab → · Contrast checker → · Palette generator →

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