#304510#304510

#304510 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.0% C 0.081 H 128.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#304510
RGBrgb(48, 69, 16)
HSLhsl(84, 62%, 17%)
HSVhsv(84, 77%, 27%)
CMYKcmyk(30.4%, 0%, 76.8%, 72.9%)
CIE-LABlab(26.51, -17.84, 28.07)
CIE-LCHlch(26.51, 33.26, 122.44°)
OKLaboklab(36.04% -0.0508 0.0636)
OKLCHoklch(36.04% 0.081 128.6)
XYZxyz(3.4406, 4.9220, 1.2589)
Luminance0.0492 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304510 #251045
analogous
#454010 #304510 #164510
triadic
#304510 #103045 #451030
tetradic
#304510 #104540 #251045 #451016
square
#304510 #104540 #251045 #451016
split-complementary
#304510 #101645 #401045
monochromatic
#111906 #111906 #304510 #53771C #75A827

Accessibility & contrast

On white

10.58
#304510 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#304510 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304510
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304510#FFFFFF#000000##FFFFFF
##3045101.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494008
Deuteranopia (green-blind)
#463E14
Tritanopia (blue-blind)
#32423A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304510;
/* rgb */ color: rgb(48, 69, 16);
/* oklch */ color: oklch(36.0% 0.081 128.6);
Tailwind
colors: {
  custom: {
    50: '#6a7852',
    500: '#304510',
    950: '#000000',
  },
}
SCSS
$custom: #304510;
$custom-light: #6a7852;
$custom-dark: #000000;
JSON
{
  "hex": "#304510",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 16
  },
  "hsl": {
    "h": 83.774,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.36042,
    "c": 0.08133,
    "h": 128.6
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#304510
secondary
#50327F
accent
#42E583
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304510

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

Preview Lab → · Contrast checker → · Palette generator →

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