#304912#304912

#304912 is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.2% C 0.086 H 130.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#304912
RGBrgb(48, 73, 18)
HSLhsl(87, 60%, 18%)
HSVhsv(87, 75%, 29%)
CMYKcmyk(34.2%, 0%, 75.3%, 71.4%)
CIE-LABlab(27.95, -19.80, 28.62)
CIE-LCHlch(27.95, 34.80, 124.67°)
OKLaboklab(37.21% -0.0559 0.065)
OKLCHoklch(37.21% 0.086 130.7)
XYZxyz(3.7106, 5.4370, 1.4261)
Luminance0.0544 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304912 #2B1249
analogous
#494612 #304912 #144912
triadic
#304912 #123049 #491230
tetradic
#304912 #124946 #2B1249 #491214
square
#304912 #124946 #2B1249 #491214
split-complementary
#304912 #121449 #461249
monochromatic
#101906 #101906 #304912 #507A1E #71AB2A

Accessibility & contrast

On white

10.06
#304912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#304912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304912
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304912#FFFFFF#000000##FFFFFF
##3049121.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D430A
Deuteranopia (green-blind)
#494117
Tritanopia (blue-blind)
#31463E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304912;
/* rgb */ color: rgb(48, 73, 18);
/* oklch */ color: oklch(37.2% 0.086 130.7);
Tailwind
colors: {
  custom: {
    50: '#6b7c53',
    500: '#304912',
    950: '#000000',
  },
}
SCSS
$custom: #304912;
$custom-light: #6b7c53;
$custom-dark: #000000;
JSON
{
  "hex": "#304912",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 18
  },
  "hsl": {
    "h": 87.273,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37213,
    "c": 0.08578,
    "h": 130.7
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#304912
secondary
#583582
accent
#44E48D
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304912

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

Preview Lab → · Contrast checker → · Palette generator →

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