#334F0C#334F0C

#334F0C is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.1% C 0.097 H 130.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#334F0C
RGBrgb(51, 79, 12)
HSLhsl(85, 74%, 18%)
HSVhsv(85, 85%, 31%)
CMYKcmyk(35.4%, 0%, 84.8%, 69%)
CIE-LABlab(30.21, -22.03, 33.44)
CIE-LCHlch(30.21, 40.04, 123.38°)
OKLaboklab(39.1% -0.0627 0.074)
OKLCHoklch(39.1% 0.097 130.3)
XYZxyz(4.2276, 6.3222, 1.3453)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F0C #280C4F
analogous
#4F490C #334F0C #114F0C
triadic
#334F0C #0C334F #4F0C33
tetradic
#334F0C #0C4F49 #280C4F #4F0C11
square
#334F0C #0C4F49 #280C4F #4F0C11
split-complementary
#334F0C #0C114F #490C4F
monochromatic
#111B04 #111B04 #334F0C #558414 #78B91C

Accessibility & contrast

On white

9.27
#334F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#334F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F0C
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F0C#FFFFFF#000000##FFFFFF
##334F0C1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334f0c;
/* rgb */ color: rgb(51, 79, 12);
/* oklch */ color: oklch(39.1% 0.097 130.3);
Tailwind
colors: {
  custom: {
    50: '#6e8051',
    500: '#334f0c',
    950: '#000000',
  },
}
SCSS
$custom: #334f0c;
$custom-light: #6e8051;
$custom-dark: #000000;
JSON
{
  "hex": "#334f0c",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 85.075,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.39096,
    "c": 0.09704,
    "h": 130.3
  },
  "luminance": 0.06322
}

Semantic roles & 50–950 ramp

primary
#334F0C
secondary
#542C8B
accent
#38F085
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #334F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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