#334512#334512

#334512 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.3% C 0.078 H 126.7°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#334512
RGBrgb(51, 69, 18)
HSLhsl(81, 59%, 17%)
HSVhsv(81, 74%, 27%)
CMYKcmyk(26.1%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.75, -16.29, 27.43)
CIE-LCHlch(26.75, 31.90, 120.71°)
OKLaboklab(36.29% -0.0465 0.0625)
OKLCHoklch(36.29% 0.078 126.7)
XYZxyz(3.6026, 5.0037, 1.3482)
Luminance0.0500 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334512 #241245
analogous
#453E12 #334512 #1A4512
triadic
#334512 #123345 #451233
tetradic
#334512 #12453E #241245 #45121A
square
#334512 #12453E #241245 #45121A
split-complementary
#334512 #121A45 #3E1245
monochromatic
#121806 #121806 #334512 #57761F #7BA62B

Accessibility & contrast

On white

10.50
#334512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#334512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334512
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334512#FFFFFF#000000##FFFFFF
##3345121.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400B
Deuteranopia (green-blind)
#463F16
Tritanopia (blue-blind)
#35423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #334512;
/* rgb */ color: rgb(51, 69, 18);
/* oklch */ color: oklch(36.3% 0.078 126.7);
Tailwind
colors: {
  custom: {
    50: '#6d7853',
    500: '#334512',
    950: '#000000',
  },
}
SCSS
$custom: #334512;
$custom-light: #6d7853;
$custom-dark: #000000;
JSON
{
  "hex": "#334512",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 81.176,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.36294,
    "c": 0.07789,
    "h": 126.7
  },
  "luminance": 0.05004
}

Semantic roles & 50–950 ramp

primary
#334512
secondary
#4F357E
accent
#46E27D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334512

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

Preview Lab → · Contrast checker → · Palette generator →

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