#304715#304715

#304715 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.7% C 0.080 H 130.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#304715
RGBrgb(48, 71, 21)
HSLhsl(88, 54%, 18%)
HSVhsv(88, 70%, 28%)
CMYKcmyk(32.4%, 0%, 70.4%, 72.2%)
CIE-LABlab(27.27, -18.46, 26.43)
CIE-LCHlch(27.27, 32.24, 124.93°)
OKLaboklab(36.67% -0.052 0.0609)
OKLCHoklch(36.67% 0.08 130.5)
XYZxyz(3.6075, 5.1889, 1.5208)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304715 #2C1547
analogous
#474515 #304715 #174715
triadic
#304715 #153047 #471530
tetradic
#304715 #154745 #2C1547 #471517
square
#304715 #154745 #2C1547 #471517
split-complementary
#304715 #151747 #451547
monochromatic
#101807 #101807 #304715 #507623 #70A531

Accessibility & contrast

On white

10.31
#304715 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#304715 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304715
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304715#FFFFFF#000000##FFFFFF
##3047151.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A420F
Deuteranopia (green-blind)
#474019
Tritanopia (blue-blind)
#31443D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304715;
/* rgb */ color: rgb(48, 71, 21);
/* oklch */ color: oklch(36.7% 0.080 130.5);
Tailwind
colors: {
  custom: {
    50: '#6a7a55',
    500: '#304715',
    950: '#000000',
  },
}
SCSS
$custom: #304715;
$custom-light: #6a7a55;
$custom-dark: #000000;
JSON
{
  "hex": "#304715",
  "rgb": {
    "r": 48,
    "g": 71,
    "b": 21
  },
  "hsl": {
    "h": 87.6,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36671,
    "c": 0.08004,
    "h": 130.5
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#304715
secondary
#59397F
accent
#4ADE8E
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304715

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

Preview Lab → · Contrast checker → · Palette generator →

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