#334C12#334C12

#334C12 is a dark, moderate yellow-green. Relative luminance 0.059; OKLCH L 38.3% C 0.089 H 130.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#334C12
RGBrgb(51, 76, 18)
HSLhsl(86, 62%, 18%)
HSVhsv(86, 76%, 30%)
CMYKcmyk(32.9%, 0%, 76.3%, 70.2%)
CIE-LABlab(29.20, -20.06, 29.98)
CIE-LCHlch(29.20, 36.08, 123.79°)
OKLaboklab(38.29% -0.0569 0.0678)
OKLCHoklch(38.29% 0.089 130)
XYZxyz(4.0588, 5.9162, 1.5003)
Luminance0.0592 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C12 #2B124C
analogous
#4C4812 #334C12 #164C12
triadic
#334C12 #12334C #4C1233
tetradic
#334C12 #124C48 #2B124C #4C1216
square
#334C12 #124C48 #2B124C #4C1216
split-complementary
#334C12 #12164C #48124C
monochromatic
#111906 #121B06 #334C12 #547D1E #75AF29

Accessibility & contrast

On white

9.62
#334C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#334C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C12
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C12#FFFFFF#000000##FFFFFF
##334C121.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504609
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#344840
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #334c12;
/* rgb */ color: rgb(51, 76, 18);
/* oklch */ color: oklch(38.3% 0.089 130.0);
Tailwind
colors: {
  custom: {
    50: '#6d7e54',
    500: '#334c12',
    950: '#000000',
  },
}
SCSS
$custom: #334c12;
$custom-light: #6d7e54;
$custom-dark: #000000;
JSON
{
  "hex": "#334c12",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 85.862,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38286,
    "c": 0.08851,
    "h": 130
  },
  "luminance": 0.05916
}

Semantic roles & 50–950 ramp

primary
#334C12
secondary
#573585
accent
#43E589
background
#F6F7F4
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334C12

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

Preview Lab → · Contrast checker → · Palette generator →

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