#304810#304810

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

Color values

HEX#304810
RGBrgb(48, 72, 16)
HSLhsl(86, 64%, 17%)
HSVhsv(86, 78%, 28%)
CMYKcmyk(33.3%, 0%, 77.8%, 71.8%)
CIE-LABlab(27.57, -19.44, 29.16)
CIE-LCHlch(27.57, 35.05, 123.69°)
OKLaboklab(36.91% -0.0551 0.0658)
OKLCHoklch(36.91% 0.086 129.9)
XYZxyz(3.6298, 5.3004, 1.3219)
Luminance0.0530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304810 #281048
analogous
#484410 #304810 #144810
triadic
#304810 #103048 #481030
tetradic
#304810 #104844 #281048 #481014
square
#304810 #104844 #281048 #481014
split-complementary
#304810 #101448 #441048
monochromatic
#111906 #111906 #304810 #517A1B #73AC26

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304810#FFFFFF#000000##FFFFFF
##3048101.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)
#4C4207
Deuteranopia (green-blind)
#484115
Tritanopia (blue-blind)
#31453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #304810;
/* rgb */ color: rgb(48, 72, 16);
/* oklch */ color: oklch(36.9% 0.086 129.9);
Tailwind
colors: {
  custom: {
    50: '#6b7b52',
    500: '#304810',
    950: '#000000',
  },
}
SCSS
$custom: #304810;
$custom-light: #6b7b52;
$custom-dark: #000000;
JSON
{
  "hex": "#304810",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 16
  },
  "hsl": {
    "h": 85.714,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.36906,
    "c": 0.08587,
    "h": 129.9
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#304810
secondary
#543282
accent
#41E788
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304810

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

Preview Lab → · Contrast checker → · Palette generator →

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