#304311#304311

#304311 is a dark, moderate yellow-green. Relative luminance 0.047; OKLCH L 35.5% C 0.077 H 127.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#304311
RGBrgb(48, 67, 17)
HSLhsl(83, 60%, 16%)
HSVhsv(83, 75%, 26%)
CMYKcmyk(28.4%, 0%, 74.6%, 73.7%)
CIE-LABlab(25.81, -16.66, 26.87)
CIE-LCHlch(25.81, 31.61, 121.80°)
OKLaboklab(35.48% -0.0474 0.0612)
OKLCHoklch(35.48% 0.077 127.8)
XYZxyz(3.3273, 4.6831, 1.2588)
Luminance0.0468 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304311 #241143
analogous
#433D11 #304311 #174311
triadic
#304311 #113043 #431130
tetradic
#304311 #11433D #241143 #431117
square
#304311 #11433D #241143 #431117
split-complementary
#304311 #111743 #3D1143
monochromatic
#111806 #111806 #304311 #53741D #76A52A

Accessibility & contrast

On white

10.84
#304311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#304311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304311
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304311#FFFFFF#000000##FFFFFF
##3043111.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473E0A
Deuteranopia (green-blind)
#443D15
Tritanopia (blue-blind)
#324039
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #304311;
/* rgb */ color: rgb(48, 67, 17);
/* oklch */ color: oklch(35.5% 0.077 127.8);
Tailwind
colors: {
  custom: {
    50: '#6a7752',
    500: '#304311',
    950: '#000000',
  },
}
SCSS
$custom: #304311;
$custom-light: #6a7752;
$custom-dark: #000000;
JSON
{
  "hex": "#304311",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 17
  },
  "hsl": {
    "h": 82.8,
    "s": 59.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35478,
    "c": 0.07741,
    "h": 127.8
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#304311
secondary
#4F337D
accent
#45E381
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #304311

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

Preview Lab → · Contrast checker → · Palette generator →

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