#334F18#334F18

#334F18 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.088 H 132.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#334F18
RGBrgb(51, 79, 24)
HSLhsl(91, 53%, 20%)
HSVhsv(91, 70%, 31%)
CMYKcmyk(35.4%, 0%, 69.6%, 69%)
CIE-LABlab(30.31, -21.08, 28.30)
CIE-LCHlch(30.31, 35.28, 126.69°)
OKLaboklab(39.21% -0.0591 0.0652)
OKLCHoklch(39.21% 0.088 132.2)
XYZxyz(4.3260, 6.3616, 1.8639)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F18 #34184F
analogous
#4F4F18 #334F18 #184F18
triadic
#334F18 #18334F #4F1833
tetradic
#334F18 #184F4F #34184F #4F1818
square
#334F18 #184F4F #34184F #4F1818
split-complementary
#334F18 #18184F #4F184F
monochromatic
#0F1707 #15200A #334F18 #517E26 #70AD35

Accessibility & contrast

On white

9.24
#334F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#334F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F18
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F18#FFFFFF#000000##FFFFFF
##334F181.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534911
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#344C44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334f18;
/* rgb */ color: rgb(51, 79, 24);
/* oklch */ color: oklch(39.2% 0.088 132.2);
Tailwind
colors: {
  custom: {
    50: '#6d8058',
    500: '#334f18',
    950: '#000000',
  },
}
SCSS
$custom: #334f18;
$custom-light: #6d8058;
$custom-dark: #000000;
JSON
{
  "hex": "#334f18",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 90.545,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.08797,
    "h": 132.2
  },
  "luminance": 0.06362
}

Semantic roles & 50–950 ramp

primary
#334F18
secondary
#623D86
accent
#4BDD95
background
#F6F7F5
surface
#ECEEE9
border
#C7C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334F18

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

Preview Lab → · Contrast checker → · Palette generator →

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