#304612#304612

#304612 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.4% C 0.081 H 129.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#304612
RGBrgb(48, 70, 18)
HSLhsl(85, 59%, 17%)
HSVhsv(85, 74%, 27%)
CMYKcmyk(31.4%, 0%, 74.3%, 72.5%)
CIE-LABlab(26.88, -18.21, 27.51)
CIE-LCHlch(26.88, 32.99, 123.50°)
OKLaboklab(36.35% -0.0516 0.0627)
OKLCHoklch(36.35% 0.081 129.4)
XYZxyz(3.5182, 5.0523, 1.3620)
Luminance0.0505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304612 #281246
analogous
#464212 #304612 #164612
triadic
#304612 #123046 #461230
tetradic
#304612 #124642 #281246 #461216
square
#304612 #124642 #281246 #461216
split-complementary
#304612 #121646 #421246
monochromatic
#111806 #111806 #304612 #51771F #73A72B

Accessibility & contrast

On white

10.45
#304612 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#304612 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304612
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304612#FFFFFF#000000##FFFFFF
##3046121.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A410B
Deuteranopia (green-blind)
#473F16
Tritanopia (blue-blind)
#32433B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304612;
/* rgb */ color: rgb(48, 70, 18);
/* oklch */ color: oklch(36.4% 0.081 129.4);
Tailwind
colors: {
  custom: {
    50: '#6a7953',
    500: '#304612',
    950: '#000000',
  },
}
SCSS
$custom: #304612;
$custom-light: #6a7953;
$custom-dark: #000000;
JSON
{
  "hex": "#304612",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 18
  },
  "hsl": {
    "h": 85.385,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.3635,
    "c": 0.08118,
    "h": 129.4
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

primary
#304612
secondary
#54357F
accent
#46E288
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304612

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

Preview Lab → · Contrast checker → · Palette generator →

#304612 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva