#334D0C#334D0C

#334D0C is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.5% C 0.094 H 129.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#334D0C
RGBrgb(51, 77, 12)
HSLhsl(84, 73%, 17%)
HSVhsv(84, 84%, 30%)
CMYKcmyk(33.8%, 0%, 84.4%, 69.8%)
CIE-LABlab(29.51, -21.01, 32.77)
CIE-LCHlch(29.51, 38.93, 122.66°)
OKLaboklab(38.52% -0.06 0.0726)
OKLCHoklch(38.52% 0.094 129.6)
XYZxyz(4.0855, 6.0380, 1.2980)
Luminance0.0604 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D0C #260C4D
analogous
#4D470C #334D0C #124D0C
triadic
#334D0C #0C334D #4D0C33
tetradic
#334D0C #0C4D47 #260C4D #4D0C12
square
#334D0C #0C4D47 #260C4D #4D0C12
split-complementary
#334D0C #0C124D #470C4D
monochromatic
#121A04 #121A04 #334D0C #568214 #79B71D

Accessibility & contrast

On white

9.51
#334D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334D0C
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D0C#FFFFFF#000000##FFFFFF
##334D0C1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514701
Deuteranopia (green-blind)
#4D4513
Tritanopia (blue-blind)
#354941
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334d0c;
/* rgb */ color: rgb(51, 77, 12);
/* oklch */ color: oklch(38.5% 0.094 129.6);
Tailwind
colors: {
  custom: {
    50: '#6e7f51',
    500: '#334d0c',
    950: '#000000',
  },
}
SCSS
$custom: #334d0c;
$custom-light: #6e7f51;
$custom-dark: #000000;
JSON
{
  "hex": "#334d0c",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 84,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38523,
    "c": 0.09419,
    "h": 129.6
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#334D0C
secondary
#512C89
accent
#38F082
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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