#334012#334012

#334012 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.9% C 0.070 H 123.5°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#334012
RGBrgb(51, 64, 18)
HSLhsl(77, 56%, 16%)
HSVhsv(77, 72%, 25%)
CMYKcmyk(20.3%, 0%, 71.9%, 74.9%)
CIE-LABlab(25.00, -13.46, 25.57)
CIE-LCHlch(25.00, 28.90, 117.77°)
OKLaboklab(34.88% -0.0387 0.0585)
OKLCHoklch(34.88% 0.07 123.5)
XYZxyz(3.3078, 4.4143, 1.2499)
Luminance0.0441 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334012 #1F1240
analogous
#403612 #334012 #1C4012
triadic
#334012 #123340 #401233
tetradic
#334012 #124036 #1F1240 #40121C
square
#334012 #124036 #1F1240 #40121C
split-complementary
#334012 #121C40 #361240
monochromatic
#131807 #131807 #334012 #59701F #7FA02D

Accessibility & contrast

On white

11.15
#334012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334012
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334012#FFFFFF#000000##FFFFFF
##3340121.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443C0C
Deuteranopia (green-blind)
#423B15
Tritanopia (blue-blind)
#363D36
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #334012;
/* rgb */ color: rgb(51, 64, 18);
/* oklch */ color: oklch(34.9% 0.070 123.5);
Tailwind
colors: {
  custom: {
    50: '#6c7452',
    500: '#334012',
    950: '#000000',
  },
}
SCSS
$custom: #334012;
$custom-light: #6c7452;
$custom-dark: #000000;
JSON
{
  "hex": "#334012",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 76.957,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.3488,
    "c": 0.07018,
    "h": 123.5
  },
  "luminance": 0.04414
}

Semantic roles & 50–950 ramp

primary
#334012
secondary
#483579
accent
#48DF73
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #334012

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

Preview Lab → · Contrast checker → · Palette generator →

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