#334E12#334E12

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

Color values

HEX#334E12
RGBrgb(51, 78, 18)
HSLhsl(87, 63%, 19%)
HSVhsv(87, 77%, 31%)
CMYKcmyk(34.6%, 0%, 76.9%, 69.4%)
CIE-LABlab(29.90, -21.10, 30.70)
CIE-LCHlch(29.90, 37.25, 124.50°)
OKLaboklab(38.86% -0.0597 0.0693)
OKLCHoklch(38.86% 0.092 130.7)
XYZxyz(4.1988, 6.1961, 1.5469)
Luminance0.0620 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E12 #2D124E
analogous
#4E4B12 #334E12 #154E12
triadic
#334E12 #12334E #4E1233
tetradic
#334E12 #124E4B #2D124E #4E1215
square
#334E12 #124E4B #2D124E #4E1215
split-complementary
#334E12 #12154E #4B124E
monochromatic
#101906 #121C07 #334E12 #54801D #74B129

Accessibility & contrast

On white

9.38
#334E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E12
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E12#FFFFFF#000000##FFFFFF
##334E121.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#344A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334e12;
/* rgb */ color: rgb(51, 78, 18);
/* oklch */ color: oklch(38.9% 0.091 130.7);
Tailwind
colors: {
  custom: {
    50: '#6d7f54',
    500: '#334e12',
    950: '#000000',
  },
}
SCSS
$custom: #334e12;
$custom-light: #6d7f54;
$custom-dark: #000000;
JSON
{
  "hex": "#334e12",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 87,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38857,
    "c": 0.0915,
    "h": 130.7
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#334E12
secondary
#5A3587
accent
#42E68C
background
#F6F7F5
surface
#ECEEE8
border
#C7C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #334E12

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

Preview Lab → · Contrast checker → · Palette generator →

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