#305711#305711

#305711 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.2% C 0.107 H 134.6°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#305711
RGBrgb(48, 87, 17)
HSLhsl(93, 67%, 20%)
HSVhsv(93, 80%, 34%)
CMYKcmyk(44.8%, 0%, 80.5%, 65.9%)
CIE-LABlab(32.89, -26.83, 34.05)
CIE-LCHlch(32.89, 43.35, 128.24°)
OKLaboklab(41.25% -0.0751 0.0762)
OKLCHoklch(41.25% 0.107 134.6)
XYZxyz(4.7282, 7.4850, 1.7258)
Luminance0.0748 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305711 #381157
analogous
#535711 #305711 #115715
triadic
#305711 #113057 #571130
tetradic
#305711 #115357 #381157 #571511
square
#305711 #115357 #381157 #571511
split-complementary
#305711 #151157 #571153
monochromatic
#0E1A05 #142407 #305711 #4C8A1B #68BD25

Accessibility & contrast

On white

8.41
#305711 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#305711 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305711
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305711#FFFFFF#000000##FFFFFF
##3057111.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F04
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#2F534A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #305711;
/* rgb */ color: rgb(48, 87, 17);
/* oklch */ color: oklch(41.2% 0.107 134.6);
Tailwind
colors: {
  custom: {
    50: '#6c8755',
    500: '#305711',
    950: '#000000',
  },
}
SCSS
$custom: #305711;
$custom-light: #6c8755;
$custom-dark: #000000;
JSON
{
  "hex": "#305711",
  "rgb": {
    "r": 48,
    "g": 87,
    "b": 17
  },
  "hsl": {
    "h": 93.429,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.10701,
    "h": 134.6
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#305711
secondary
#673490
accent
#3EEA9E
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305711

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

Preview Lab → · Contrast checker → · Palette generator →

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