#304517#304517

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

Color values

HEX#304517
RGBrgb(48, 69, 23)
HSLhsl(87, 50%, 18%)
HSVhsv(87, 67%, 27%)
CMYKcmyk(30.4%, 0%, 66.7%, 72.9%)
CIE-LABlab(26.58, -17.17, 24.63)
CIE-LCHlch(26.58, 30.02, 124.88°)
OKLaboklab(36.12% -0.0482 0.0573)
OKLCHoklch(36.12% 0.075 130.1)
XYZxyz(3.5017, 4.9464, 1.5807)
Luminance0.0495 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304517 #2C1745
analogous
#454317 #304517 #194517
triadic
#304517 #173045 #451730
tetradic
#304517 #174543 #2C1745 #451719
square
#304517 #174543 #2C1745 #451719
split-complementary
#304517 #171945 #431745
monochromatic
#101708 #101708 #304517 #507326 #70A136

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304517#FFFFFF#000000##FFFFFF
##3045171.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)
#484012
Deuteranopia (green-blind)
#453E1A
Tritanopia (blue-blind)
#31423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304517;
/* rgb */ color: rgb(48, 69, 23);
/* oklch */ color: oklch(36.1% 0.075 130.1);
Tailwind
colors: {
  custom: {
    50: '#6a7856',
    500: '#304517',
    950: '#000000',
  },
}
SCSS
$custom: #304517;
$custom-light: #6a7856;
$custom-dark: #000000;
JSON
{
  "hex": "#304517",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 23
  },
  "hsl": {
    "h": 87.391,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.36122,
    "c": 0.07489,
    "h": 130.1
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#304517
secondary
#593C7C
accent
#4EDA8E
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #304517

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

Preview Lab → · Contrast checker → · Palette generator →

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