#304615#304615

#304615 is a dark, moderate yellow-green. Relative luminance 0.051; OKLCH L 36.4% C 0.078 H 130.0°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#304615
RGBrgb(48, 70, 21)
HSLhsl(87, 54%, 18%)
HSVhsv(87, 70%, 27%)
CMYKcmyk(31.4%, 0%, 70%, 72.5%)
CIE-LABlab(26.91, -17.92, 26.04)
CIE-LCHlch(26.91, 31.62, 124.53°)
OKLaboklab(36.38% -0.0505 0.0601)
OKLCHoklch(36.38% 0.078 130)
XYZxyz(3.5444, 5.0627, 1.4998)
Luminance0.0506 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304615 #2B1546
analogous
#464315 #304615 #174615
triadic
#304615 #153046 #461530
tetradic
#304615 #154643 #2B1546 #461517
square
#304615 #154643 #2B1546 #461517
split-complementary
#304615 #151746 #431546
monochromatic
#101807 #101807 #304615 #507523 #71A431

Accessibility & contrast

On white

10.43
#304615 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#304615 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304615
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304615#FFFFFF#000000##FFFFFF
##3046151.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49410F
Deuteranopia (green-blind)
#463F19
Tritanopia (blue-blind)
#31433C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #304615;
/* rgb */ color: rgb(48, 70, 21);
/* oklch */ color: oklch(36.4% 0.078 130.0);
Tailwind
colors: {
  custom: {
    50: '#6a7955',
    500: '#304615',
    950: '#000000',
  },
}
SCSS
$custom: #304615;
$custom-light: #6a7955;
$custom-dark: #000000;
JSON
{
  "hex": "#304615",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 21
  },
  "hsl": {
    "h": 86.939,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36383,
    "c": 0.07846,
    "h": 130
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#304615
secondary
#58397E
accent
#4BDD8C
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304615

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

Preview Lab → · Contrast checker → · Palette generator →

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