#334B0C#334B0C

#334B0C is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.091 H 128.7°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#334B0C
RGBrgb(51, 75, 12)
HSLhsl(83, 72%, 17%)
HSVhsv(83, 84%, 29%)
CMYKcmyk(32%, 0%, 84%, 70.6%)
CIE-LABlab(28.80, -19.97, 32.11)
CIE-LCHlch(28.80, 37.81, 121.88°)
OKLaboklab(37.95% -0.0572 0.0712)
OKLCHoklch(37.95% 0.091 128.7)
XYZxyz(3.9477, 5.7624, 1.2520)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B0C #240C4B
analogous
#4B440C #334B0C #144B0C
triadic
#334B0C #0C334B #4B0C33
tetradic
#334B0C #0C4B44 #240C4B #4B0C14
square
#334B0C #0C4B44 #240C4B #4B0C14
split-complementary
#334B0C #0C144B #440C4B
monochromatic
#121A04 #121A04 #334B0C #578014 #7BB51D

Accessibility & contrast

On white

9.76
#334B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#334B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B0C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B0C#FFFFFF#000000##FFFFFF
##334B0C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4501
Deuteranopia (green-blind)
#4C4312
Tritanopia (blue-blind)
#35473F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334b0c;
/* rgb */ color: rgb(51, 75, 12);
/* oklch */ color: oklch(38.0% 0.091 128.7);
Tailwind
colors: {
  custom: {
    50: '#6d7d50',
    500: '#334b0c',
    950: '#000000',
  },
}
SCSS
$custom: #334b0c;
$custom-light: #6d7d50;
$custom-dark: #000000;
JSON
{
  "hex": "#334b0c",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 12
  },
  "hsl": {
    "h": 82.857,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37951,
    "c": 0.09132,
    "h": 128.7
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#334B0C
secondary
#4F2C87
accent
#39EF7E
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #334B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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