#304515#304515

#304515 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.1% C 0.077 H 129.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#304515
RGBrgb(48, 69, 21)
HSLhsl(86, 53%, 18%)
HSVhsv(86, 70%, 27%)
CMYKcmyk(30.4%, 0%, 69.6%, 72.9%)
CIE-LABlab(26.56, -17.38, 25.66)
CIE-LCHlch(26.56, 30.99, 124.11°)
OKLaboklab(36.1% -0.049 0.0592)
OKLCHoklch(36.1% 0.077 129.6)
XYZxyz(3.4824, 4.9387, 1.4791)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304515 #2A1545
analogous
#454215 #304515 #184515
triadic
#304515 #153045 #451530
tetradic
#304515 #154542 #2A1545 #451518
square
#304515 #154542 #2A1545 #451518
split-complementary
#304515 #151845 #421545
monochromatic
#101707 #101707 #304515 #517423 #71A332

Accessibility & contrast

On white

10.56
#304515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#304515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304515
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304515#FFFFFF#000000##FFFFFF
##3045151.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48400F
Deuteranopia (green-blind)
#453E19
Tritanopia (blue-blind)
#31423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304515;
/* rgb */ color: rgb(48, 69, 21);
/* oklch */ color: oklch(36.1% 0.077 129.6);
Tailwind
colors: {
  custom: {
    50: '#6a7855',
    500: '#304515',
    950: '#000000',
  },
}
SCSS
$custom: #304515;
$custom-light: #6a7855;
$custom-dark: #000000;
JSON
{
  "hex": "#304515",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 21
  },
  "hsl": {
    "h": 86.25,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.36097,
    "c": 0.07687,
    "h": 129.6
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#304515
secondary
#57397D
accent
#4BDD8B
background
#F6F7F5
surface
#EBEDE8
border
#C6C8C4
text
#060903
muted
#7A7B78

Preview Lab

Preview with #304515

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

Preview Lab → · Contrast checker → · Palette generator →

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