#334E18#334E18

#334E18 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.9% C 0.086 H 131.8°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#334E18
RGBrgb(51, 78, 24)
HSLhsl(90, 53%, 20%)
HSVhsv(90, 69%, 31%)
CMYKcmyk(34.6%, 0%, 69.2%, 69.4%)
CIE-LABlab(29.96, -20.56, 27.91)
CIE-LCHlch(29.96, 34.67, 126.38°)
OKLaboklab(38.92% -0.0576 0.0644)
OKLCHoklch(38.92% 0.086 131.8)
XYZxyz(4.2544, 6.2184, 1.8401)
Luminance0.0622 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E18 #33184E
analogous
#4E4E18 #334E18 #184E18
triadic
#334E18 #18334E #4E1833
tetradic
#334E18 #184E4E #33184E #4E1818
square
#334E18 #184E4E #33184E #4E1818
split-complementary
#334E18 #18184E #4E184E
monochromatic
#0F1707 #141F0A #334E18 #527D26 #70AC35

Accessibility & contrast

On white

9.36
#334E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#334E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E18
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E18#FFFFFF#000000##FFFFFF
##334E181.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524811
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#344B43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334e18;
/* rgb */ color: rgb(51, 78, 24);
/* oklch */ color: oklch(38.9% 0.086 131.8);
Tailwind
colors: {
  custom: {
    50: '#6d7f58',
    500: '#334e18',
    950: '#000000',
  },
}
SCSS
$custom: #334e18;
$custom-light: #6d7f58;
$custom-dark: #000000;
JSON
{
  "hex": "#334e18",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 24
  },
  "hsl": {
    "h": 90,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.08642,
    "h": 131.8
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#334E18
secondary
#613D85
accent
#4BDC94
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334E18

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

Preview Lab → · Contrast checker → · Palette generator →

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