#334E0C#334E0C

#334E0C is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.8% C 0.096 H 129.9°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#334E0C
RGBrgb(51, 78, 12)
HSLhsl(85, 73%, 18%)
HSVhsv(85, 85%, 31%)
CMYKcmyk(34.6%, 0%, 84.6%, 69.4%)
CIE-LABlab(29.86, -21.52, 33.11)
CIE-LCHlch(29.86, 39.49, 123.03°)
OKLaboklab(38.81% -0.0614 0.0733)
OKLCHoklch(38.81% 0.096 129.9)
XYZxyz(4.1560, 6.1790, 1.3215)
Luminance0.0618 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E0C #270C4E
analogous
#4E480C #334E0C #124E0C
triadic
#334E0C #0C334E #4E0C33
tetradic
#334E0C #0C4E48 #270C4E #4E0C12
square
#334E0C #0C4E48 #270C4E #4E0C12
split-complementary
#334E0C #0C124E #480C4E
monochromatic
#111B04 #111B04 #334E0C #568314 #78B81C

Accessibility & contrast

On white

9.39
#334E0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334E0C
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E0C#FFFFFF#000000##FFFFFF
##334E0C1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4E4613
Tritanopia (blue-blind)
#354A42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334e0c;
/* rgb */ color: rgb(51, 78, 12);
/* oklch */ color: oklch(38.8% 0.096 129.9);
Tailwind
colors: {
  custom: {
    50: '#6e7f51',
    500: '#334e0c',
    950: '#000000',
  },
}
SCSS
$custom: #334e0c;
$custom-light: #6e7f51;
$custom-dark: #000000;
JSON
{
  "hex": "#334e0c",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 12
  },
  "hsl": {
    "h": 84.545,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.09561,
    "h": 129.9
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#334E0C
secondary
#522C8A
accent
#38F083
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334E0C

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

Preview Lab → · Contrast checker → · Palette generator →

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