#334008#334008

#334008 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.8% C 0.078 H 122.3°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#334008
RGBrgb(51, 64, 8)
HSLhsl(74, 78%, 14%)
HSVhsv(74, 88%, 25%)
CMYKcmyk(20.3%, 0%, 87.5%, 74.9%)
CIE-LABlab(24.92, -14.20, 30.00)
CIE-LCHlch(24.92, 33.19, 115.32°)
OKLaboklab(34.79% -0.0418 0.066)
OKLCHoklch(34.79% 0.078 122.3)
XYZxyz(3.2425, 4.3881, 0.9058)
Luminance0.0439 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334008 #150840
analogous
#403108 #334008 #174008
triadic
#334008 #083340 #400833
tetradic
#334008 #084031 #150840 #400817
square
#334008 #084031 #150840 #400817
split-complementary
#334008 #081740 #310840
monochromatic
#161B03 #161B03 #334008 #5E760F #8AAD16

Accessibility & contrast

On white

11.18
#334008 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#334008 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334008
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334008#FFFFFF#000000##FFFFFF
##3340081.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#433B0D
Tritanopia (blue-blind)
#363C36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #334008;
/* rgb */ color: rgb(51, 64, 8);
/* oklch */ color: oklch(34.8% 0.078 122.3);
Tailwind
colors: {
  custom: {
    50: '#6d744d',
    500: '#334008',
    950: '#000000',
  },
}
SCSS
$custom: #334008;
$custom-light: #6d744d;
$custom-dark: #000000;
JSON
{
  "hex": "#334008",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 8
  },
  "hsl": {
    "h": 73.929,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.34789,
    "c": 0.07814,
    "h": 122.3
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#334008
secondary
#3A257E
accent
#34F460
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #334008

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

Preview Lab → · Contrast checker → · Palette generator →

#334008 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva