#305111#305111

#305111 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.098 H 133.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#305111
RGBrgb(48, 81, 17)
HSLhsl(91, 65%, 19%)
HSVhsv(91, 79%, 32%)
CMYKcmyk(40.7%, 0%, 79%, 68.2%)
CIE-LABlab(30.77, -23.94, 31.95)
CIE-LCHlch(30.77, 39.93, 126.85°)
OKLaboklab(39.51% -0.0673 0.0718)
OKLCHoklch(39.51% 0.098 133.1)
XYZxyz(4.2625, 6.5535, 1.5706)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305111 #321151
analogous
#505111 #305111 #115112
triadic
#305111 #113051 #511130
tetradic
#305111 #115051 #321151 #511211
square
#305111 #115051 #321151 #511211
split-complementary
#305111 #121151 #511150
monochromatic
#0F1905 #121E06 #305111 #4E841C #6CB626

Accessibility & contrast

On white

9.09
#305111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#305111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305111
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305111#FFFFFF#000000##FFFFFF
##3051111.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A06
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#304D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #305111;
/* rgb */ color: rgb(48, 81, 17);
/* oklch */ color: oklch(39.5% 0.098 133.1);
Tailwind
colors: {
  custom: {
    50: '#6c8254',
    500: '#305111',
    950: '#000000',
  },
}
SCSS
$custom: #305111;
$custom-light: #6c8254;
$custom-dark: #000000;
JSON
{
  "hex": "#305111",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 90.938,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39513,
    "c": 0.09844,
    "h": 133.1
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#305111
secondary
#60348A
accent
#40E897
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305111

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

Preview Lab → · Contrast checker → · Palette generator →

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