#304511#304511

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

Color values

HEX#304511
RGBrgb(48, 69, 17)
HSLhsl(84, 60%, 17%)
HSVhsv(84, 75%, 27%)
CMYKcmyk(30.4%, 0%, 75.4%, 72.9%)
CIE-LABlab(26.52, -17.75, 27.61)
CIE-LCHlch(26.52, 32.82, 122.74°)
OKLaboklab(36.05% -0.0504 0.0627)
OKLCHoklch(36.05% 0.081 128.8)
XYZxyz(3.4482, 4.9250, 1.2992)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304511 #261145
analogous
#454011 #304511 #164511
triadic
#304511 #113045 #451130
tetradic
#304511 #114540 #261145 #451116
square
#304511 #114540 #261145 #451116
split-complementary
#304511 #111645 #401145
monochromatic
#111906 #111906 #304511 #52761D #74A729

Accessibility & contrast

On white

10.58
#304511 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304511
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304511#FFFFFF#000000##FFFFFF
##3045111.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400A
Deuteranopia (green-blind)
#463E15
Tritanopia (blue-blind)
#32423A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304511;
/* rgb */ color: rgb(48, 69, 17);
/* oklch */ color: oklch(36.1% 0.081 128.8);
Tailwind
colors: {
  custom: {
    50: '#6a7852',
    500: '#304511',
    950: '#000000',
  },
}
SCSS
$custom: #304511;
$custom-light: #6a7852;
$custom-dark: #000000;
JSON
{
  "hex": "#304511",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 17
  },
  "hsl": {
    "h": 84.231,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.0805,
    "h": 128.8
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#304511
secondary
#52337F
accent
#44E485
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304511

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

Preview Lab → · Contrast checker → · Palette generator →

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