#305311#305311

#305311 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.1% C 0.101 H 133.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#305311
RGBrgb(48, 83, 17)
HSLhsl(92, 66%, 20%)
HSVhsv(92, 80%, 33%)
CMYKcmyk(42.2%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.48, -24.92, 32.65)
CIE-LCHlch(31.48, 41.08, 127.35°)
OKLaboklab(40.09% -0.0699 0.0733)
OKLCHoklch(40.09% 0.101 133.7)
XYZxyz(4.4133, 6.8552, 1.6208)
Luminance0.0685 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305311 #341153
analogous
#515311 #305311 #115313
triadic
#305311 #113053 #531130
tetradic
#305311 #115153 #341153 #531311
square
#305311 #115153 #341153 #531311
split-complementary
#305311 #131153 #531151
monochromatic
#0F1905 #132007 #305311 #4D861B #6BB926

Accessibility & contrast

On white

8.86
#305311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#305311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305311
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305311#FFFFFF#000000##FFFFFF
##3053111.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C05
Deuteranopia (green-blind)
#524917
Tritanopia (blue-blind)
#304F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #305311;
/* rgb */ color: rgb(48, 83, 17);
/* oklch */ color: oklch(40.1% 0.101 133.7);
Tailwind
colors: {
  custom: {
    50: '#6c8354',
    500: '#305311',
    950: '#000000',
  },
}
SCSS
$custom: #305311;
$custom-light: #6c8354;
$custom-dark: #000000;
JSON
{
  "hex": "#305311",
  "rgb": {
    "r": 48,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 91.818,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.4009,
    "c": 0.10134,
    "h": 133.7
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#305311
secondary
#63348C
accent
#3FE999
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305311

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

Preview Lab → · Contrast checker → · Palette generator →

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