#304812#304812

#304812 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.084 H 130.3°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#304812
RGBrgb(48, 72, 18)
HSLhsl(87, 60%, 18%)
HSVhsv(87, 75%, 28%)
CMYKcmyk(33.3%, 0%, 75%, 71.8%)
CIE-LABlab(27.59, -19.27, 28.25)
CIE-LCHlch(27.59, 34.20, 124.30°)
OKLaboklab(36.93% -0.0545 0.0643)
OKLCHoklch(36.93% 0.084 130.3)
XYZxyz(3.6454, 5.3067, 1.4044)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304812 #2A1248
analogous
#484512 #304812 #154812
triadic
#304812 #123048 #481230
tetradic
#304812 #124845 #2A1248 #481215
square
#304812 #124845 #2A1248 #481215
split-complementary
#304812 #121548 #451248
monochromatic
#101806 #101806 #304812 #51791E #71AA2A

Accessibility & contrast

On white

10.19
#304812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#304812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304812
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304812#FFFFFF#000000##FFFFFF
##3048121.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C420A
Deuteranopia (green-blind)
#484117
Tritanopia (blue-blind)
#31453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #304812;
/* rgb */ color: rgb(48, 72, 18);
/* oklch */ color: oklch(36.9% 0.084 130.3);
Tailwind
colors: {
  custom: {
    50: '#6b7b53',
    500: '#304812',
    950: '#000000',
  },
}
SCSS
$custom: #304812;
$custom-light: #6b7b53;
$custom-dark: #000000;
JSON
{
  "hex": "#304812",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 18
  },
  "hsl": {
    "h": 86.667,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36925,
    "c": 0.08425,
    "h": 130.3
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#304812
secondary
#573581
accent
#45E38B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304812

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

Preview Lab → · Contrast checker → · Palette generator →

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