#334518#334518

#334518 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.4% C 0.072 H 127.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#334518
RGBrgb(51, 69, 24)
HSLhsl(84, 48%, 18%)
HSVhsv(84, 65%, 27%)
CMYKcmyk(26.1%, 0%, 65.2%, 72.9%)
CIE-LABlab(26.81, -15.70, 24.40)
CIE-LCHlch(26.81, 29.02, 122.76°)
OKLaboklab(36.37% -0.0443 0.0569)
OKLCHoklch(36.37% 0.072 127.9)
XYZxyz(3.6582, 5.0259, 1.6413)
Luminance0.0503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334518 #2A1845
analogous
#454018 #334518 #1C4518
triadic
#334518 #183345 #451833
tetradic
#334518 #184540 #2A1845 #45181C
square
#334518 #184540 #2A1845 #45181C
split-complementary
#334518 #181C45 #401845
monochromatic
#111708 #111808 #334518 #557228 #76A038

Accessibility & contrast

On white

10.47
#334518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#334518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334518
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334518#FFFFFF#000000##FFFFFF
##3345181.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494013
Deuteranopia (green-blind)
#463F1B
Tritanopia (blue-blind)
#35423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #334518;
/* rgb */ color: rgb(51, 69, 24);
/* oklch */ color: oklch(36.4% 0.072 127.9);
Tailwind
colors: {
  custom: {
    50: '#6c7857',
    500: '#334518',
    950: '#000000',
  },
}
SCSS
$custom: #334518;
$custom-light: #6c7857;
$custom-dark: #000000;
JSON
{
  "hex": "#334518",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 24
  },
  "hsl": {
    "h": 84,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.0721,
    "h": 127.9
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#334518
secondary
#563D7C
accent
#50D886
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #334518

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

Preview Lab → · Contrast checker → · Palette generator →

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