#334810#334810

#334810 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.1% C 0.084 H 127.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#334810
RGBrgb(51, 72, 16)
HSLhsl(83, 64%, 17%)
HSVhsv(83, 78%, 28%)
CMYKcmyk(29.2%, 0%, 77.8%, 71.8%)
CIE-LABlab(27.78, -18.10, 29.44)
CIE-LCHlch(27.78, 34.55, 121.58°)
OKLaboklab(37.13% -0.0517 0.0663)
OKLCHoklch(37.13% 0.084 127.9)
XYZxyz(3.7761, 5.3759, 1.3288)
Luminance0.0538 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334810 #251048
analogous
#484110 #334810 #174810
triadic
#334810 #103348 #481033
tetradic
#334810 #104841 #251048 #481017
square
#334810 #104841 #251048 #481017
split-complementary
#334810 #101748 #411048
monochromatic
#121906 #121906 #334810 #567A1B #7AAC26

Accessibility & contrast

On white

10.12
#334810 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#334810 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334810
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334810#FFFFFF#000000##FFFFFF
##3348101.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4207
Deuteranopia (green-blind)
#494115
Tritanopia (blue-blind)
#35443D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334810;
/* rgb */ color: rgb(51, 72, 16);
/* oklch */ color: oklch(37.1% 0.084 127.9);
Tailwind
colors: {
  custom: {
    50: '#6d7b52',
    500: '#334810',
    950: '#000000',
  },
}
SCSS
$custom: #334810;
$custom-light: #6d7b52;
$custom-dark: #000000;
JSON
{
  "hex": "#334810",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 16
  },
  "hsl": {
    "h": 82.5,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.37127,
    "c": 0.08409,
    "h": 127.9
  },
  "luminance": 0.05376
}

Semantic roles & 50–950 ramp

primary
#334810
secondary
#503282
accent
#41E77F
background
#F6F7F4
surface
#ECEDE7
border
#C7C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334810

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

Preview Lab → · Contrast checker → · Palette generator →

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