#334A0C#334A0C

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

Color values

HEX#334A0C
RGBrgb(51, 74, 12)
HSLhsl(82, 72%, 17%)
HSVhsv(82, 84%, 29%)
CMYKcmyk(31.1%, 0%, 83.8%, 71%)
CIE-LABlab(28.45, -19.44, 31.77)
CIE-LCHlch(28.45, 37.25, 121.46°)
OKLaboklab(37.67% -0.0557 0.0705)
OKLCHoklch(37.67% 0.09 128.3)
XYZxyz(3.8804, 5.6278, 1.2296)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A0C #230C4A
analogous
#4A420C #334A0C #144A0C
triadic
#334A0C #0C334A #4A0C33
tetradic
#334A0C #0C4A42 #230C4A #4A0C14
square
#334A0C #0C4A42 #230C4A #4A0C14
split-complementary
#334A0C #0C144A #420C4A
monochromatic
#121A04 #121A04 #334A0C #577F15 #7CB31D

Accessibility & contrast

On white

9.88
#334A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334A0C
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A0C#FFFFFF#000000##FFFFFF
##334A0C1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4401
Deuteranopia (green-blind)
#4B4312
Tritanopia (blue-blind)
#35463E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334a0c;
/* rgb */ color: rgb(51, 74, 12);
/* oklch */ color: oklch(37.7% 0.090 128.3);
Tailwind
colors: {
  custom: {
    50: '#6d7c50',
    500: '#334a0c',
    950: '#000000',
  },
}
SCSS
$custom: #334a0c;
$custom-light: #6d7c50;
$custom-dark: #000000;
JSON
{
  "hex": "#334a0c",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 12
  },
  "hsl": {
    "h": 82.258,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.37665,
    "c": 0.08988,
    "h": 128.3
  },
  "luminance": 0.05628
}

Semantic roles & 50–950 ramp

primary
#334A0C
secondary
#4D2C86
accent
#39EF7C
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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