#334A12#334A12

#334A12 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.7% C 0.086 H 129.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#334A12
RGBrgb(51, 74, 18)
HSLhsl(85, 61%, 18%)
HSVhsv(85, 76%, 29%)
CMYKcmyk(31.1%, 0%, 75.7%, 71%)
CIE-LABlab(28.50, -19.01, 29.26)
CIE-LCHlch(28.50, 34.89, 123.00°)
OKLaboklab(37.72% -0.054 0.0663)
OKLCHoklch(37.72% 0.086 129.1)
XYZxyz(3.9232, 5.6449, 1.4550)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A12 #29124A
analogous
#4A4512 #334A12 #174A12
triadic
#334A12 #12334A #4A1233
tetradic
#334A12 #124A45 #29124A #4A1217
square
#334A12 #124A45 #29124A #4A1217
split-complementary
#334A12 #12174A #45124A
monochromatic
#111906 #111906 #334A12 #557B1E #77AC2A

Accessibility & contrast

On white

9.86
#334A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#334A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A12
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A12#FFFFFF#000000##FFFFFF
##334A121.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E440A
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#35463F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334a12;
/* rgb */ color: rgb(51, 74, 18);
/* oklch */ color: oklch(37.7% 0.086 129.1);
Tailwind
colors: {
  custom: {
    50: '#6d7c53',
    500: '#334a12',
    950: '#000000',
  },
}
SCSS
$custom: #334a12;
$custom-light: #6d7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#334a12",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 84.643,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37716,
    "c": 0.0855,
    "h": 129.1
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#334A12
secondary
#553583
accent
#44E486
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334A12

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

Preview Lab → · Contrast checker → · Palette generator →

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