#334C17#334C17

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

Color values

HEX#334C17
RGBrgb(51, 76, 23)
HSLhsl(88, 54%, 19%)
HSVhsv(88, 70%, 30%)
CMYKcmyk(32.9%, 0%, 69.7%, 70.2%)
CIE-LABlab(29.25, -19.61, 27.64)
CIE-LCHlch(29.25, 33.89, 125.36°)
OKLaboklab(38.34% -0.0551 0.0637)
OKLCHoklch(38.34% 0.084 130.9)
XYZxyz(4.1043, 5.9344, 1.7397)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C17 #30174C
analogous
#4C4B17 #334C17 #194C17
triadic
#334C17 #17334C #4C1733
tetradic
#334C17 #174C4B #30174C #4C1719
square
#334C17 #174C4B #30174C #4C1719
split-complementary
#334C17 #17194C #4B174C
monochromatic
#101707 #131D09 #334C17 #537B25 #72AA33

Accessibility & contrast

On white

9.60
#334C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#334C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C17
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C17#FFFFFF#000000##FFFFFF
##334C171.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504611
Deuteranopia (green-blind)
#4C441B
Tritanopia (blue-blind)
#344941
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #334c17;
/* rgb */ color: rgb(51, 76, 23);
/* oklch */ color: oklch(38.3% 0.084 130.9);
Tailwind
colors: {
  custom: {
    50: '#6d7e57',
    500: '#334c17',
    950: '#000000',
  },
}
SCSS
$custom: #334c17;
$custom-light: #6d7e57;
$custom-dark: #000000;
JSON
{
  "hex": "#334c17",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 23
  },
  "hsl": {
    "h": 88.302,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.38339,
    "c": 0.08422,
    "h": 130.9
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#334C17
secondary
#5D3C83
accent
#4BDD90
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334C17

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

Preview Lab → · Contrast checker → · Palette generator →

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