#305011#305011

#305011 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.097 H 132.9°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#305011
RGBrgb(48, 80, 17)
HSLhsl(90, 65%, 19%)
HSVhsv(90, 79%, 31%)
CMYKcmyk(40%, 0%, 78.8%, 68.6%)
CIE-LABlab(30.41, -23.45, 31.60)
CIE-LCHlch(30.41, 39.35, 126.58°)
OKLaboklab(39.22% -0.066 0.0711)
OKLCHoklch(39.22% 0.097 132.9)
XYZxyz(4.1887, 6.4060, 1.5460)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305011 #311150
analogous
#505011 #305011 #115012
triadic
#305011 #113050 #501130
tetradic
#305011 #115050 #311150 #501211
square
#305011 #115050 #311150 #501211
split-complementary
#305011 #121150 #501150
monochromatic
#0F1905 #121E06 #305011 #4E821C #6DB526

Accessibility & contrast

On white

9.21
#305011 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#305011 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305011
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305011#FFFFFF#000000##FFFFFF
##3050111.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544906
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#304C44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #305011;
/* rgb */ color: rgb(48, 80, 17);
/* oklch */ color: oklch(39.2% 0.097 132.9);
Tailwind
colors: {
  custom: {
    50: '#6c8154',
    500: '#305011',
    950: '#000000',
  },
}
SCSS
$custom: #305011;
$custom-light: #6c8154;
$custom-dark: #000000;
JSON
{
  "hex": "#305011",
  "rgb": {
    "r": 48,
    "g": 80,
    "b": 17
  },
  "hsl": {
    "h": 90.476,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39224,
    "c": 0.09698,
    "h": 132.9
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#305011
secondary
#5F3389
accent
#40E895
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305011

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

Preview Lab → · Contrast checker → · Palette generator →

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