#304915#304915

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

Color values

HEX#304915
RGBrgb(48, 73, 21)
HSLhsl(89, 55%, 18%)
HSVhsv(89, 71%, 29%)
CMYKcmyk(34.2%, 0%, 71.2%, 71.4%)
CIE-LABlab(27.97, -19.52, 27.20)
CIE-LCHlch(27.97, 33.48, 125.67°)
OKLaboklab(37.24% -0.0549 0.0625)
OKLCHoklch(37.24% 0.083 131.3)
XYZxyz(3.7368, 5.4475, 1.5639)
Luminance0.0545 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304915 #2E1549
analogous
#494815 #304915 #164915
triadic
#304915 #153049 #491530
tetradic
#304915 #154948 #2E1549 #491516
square
#304915 #154948 #2E1549 #491516
split-complementary
#304915 #151649 #481549
monochromatic
#101807 #111907 #304915 #4F7923 #6FA830

Accessibility & contrast

On white

10.05
#304915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304915
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304915#FFFFFF#000000##FFFFFF
##3049151.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304915;
/* rgb */ color: rgb(48, 73, 21);
/* oklch */ color: oklch(37.2% 0.083 131.3);
Tailwind
colors: {
  custom: {
    50: '#6a7c55',
    500: '#304915',
    950: '#000000',
  },
}
SCSS
$custom: #304915;
$custom-light: #6a7c55;
$custom-dark: #000000;
JSON
{
  "hex": "#304915",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 21
  },
  "hsl": {
    "h": 88.846,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37245,
    "c": 0.08317,
    "h": 131.3
  },
  "luminance": 0.05448
}

Semantic roles & 50–950 ramp

primary
#304915
secondary
#5C3981
accent
#49DF91
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304915

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

Preview Lab → · Contrast checker → · Palette generator →

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