#304A10#304A10

#304A10 is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.5% C 0.089 H 130.7°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#304A10
RGBrgb(48, 74, 16)
HSLhsl(87, 64%, 18%)
HSVhsv(87, 78%, 29%)
CMYKcmyk(35.1%, 0%, 78.4%, 71%)
CIE-LABlab(28.28, -20.49, 29.88)
CIE-LCHlch(28.28, 36.23, 124.44°)
OKLaboklab(37.48% -0.058 0.0673)
OKLCHoklch(37.48% 0.089 130.7)
XYZxyz(3.7612, 5.5632, 1.3658)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A10 #2A104A
analogous
#4A4710 #304A10 #134A10
triadic
#304A10 #10304A #4A1030
tetradic
#304A10 #104A47 #2A104A #4A1013
square
#304A10 #104A47 #2A104A #4A1013
split-complementary
#304A10 #10134A #47104A
monochromatic
#101905 #101905 #304A10 #517C1B #71AF26

Accessibility & contrast

On white

9.94
#304A10 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#304A10 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A10
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A10#FFFFFF#000000##FFFFFF
##304A101.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4407
Deuteranopia (green-blind)
#4A4215
Tritanopia (blue-blind)
#31473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304a10;
/* rgb */ color: rgb(48, 74, 16);
/* oklch */ color: oklch(37.5% 0.089 130.7);
Tailwind
colors: {
  custom: {
    50: '#6b7c52',
    500: '#304a10',
    950: '#000000',
  },
}
SCSS
$custom: #304a10;
$custom-light: #6b7c52;
$custom-dark: #000000;
JSON
{
  "hex": "#304a10",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 16
  },
  "hsl": {
    "h": 86.897,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37483,
    "c": 0.08887,
    "h": 130.7
  },
  "luminance": 0.05563
}

Semantic roles & 50–950 ramp

primary
#304A10
secondary
#573284
accent
#40E78B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304A10

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

Preview Lab → · Contrast checker → · Palette generator →

#304A10 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva