#304712#304712

#304712 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.6% C 0.083 H 129.9°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#304712
RGBrgb(48, 71, 18)
HSLhsl(86, 60%, 17%)
HSVhsv(86, 75%, 28%)
CMYKcmyk(32.4%, 0%, 74.6%, 72.2%)
CIE-LABlab(27.24, -18.74, 27.88)
CIE-LCHlch(27.24, 33.60, 123.91°)
OKLaboklab(36.64% -0.053 0.0635)
OKLCHoklch(36.64% 0.083 129.9)
XYZxyz(3.5813, 5.1784, 1.3830)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304712 #291247
analogous
#474412 #304712 #154712
triadic
#304712 #123047 #471230
tetradic
#304712 #124744 #291247 #471215
square
#304712 #124744 #291247 #471215
split-complementary
#304712 #121547 #441247
monochromatic
#111806 #111806 #304712 #51781E #72A92B

Accessibility & contrast

On white

10.32
#304712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#304712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304712
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304712#FFFFFF#000000##FFFFFF
##3047121.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B410B
Deuteranopia (green-blind)
#474016
Tritanopia (blue-blind)
#31443C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304712;
/* rgb */ color: rgb(48, 71, 18);
/* oklch */ color: oklch(36.6% 0.083 129.9);
Tailwind
colors: {
  custom: {
    50: '#6a7a53',
    500: '#304712',
    950: '#000000',
  },
}
SCSS
$custom: #304712;
$custom-light: #6a7a53;
$custom-dark: #000000;
JSON
{
  "hex": "#304712",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 18
  },
  "hsl": {
    "h": 86.038,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36638,
    "c": 0.08272,
    "h": 129.9
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#304712
secondary
#553580
accent
#45E389
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304712

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

Preview Lab → · Contrast checker → · Palette generator →

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