#8B308C#8B308C

#8B308C is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.166 H 327.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8B308C
RGBrgb(139, 48, 140)
HSLhsl(299, 49%, 37%)
HSVhsv(299, 66%, 55%)
CMYKcmyk(0.7%, 65.7%, 0%, 45.1%)
CIE-LABlab(36.92, 50.45, -32.47)
CIE-LCHlch(36.92, 59.99, 327.23°)
OKLaboklab(47.78% 0.1401 -0.0898)
OKLCHoklch(47.78% 0.166 327.4)
XYZxyz(16.4378, 9.4974, 25.7732)
Luminance0.0950 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B308C #318C30
analogous
#5D308C #8B308C #8C305F
triadic
#8B308C #8C8B30 #308C8B
tetradic
#8B308C #8C5D30 #318C30 #305F8C
square
#8B308C #8C5D30 #318C30 #305F8C
split-complementary
#8B308C #5F8C30 #308C5D
monochromatic
#311131 #5E205E #8B308C #B840BA #CB6ACC

Accessibility & contrast

On white

7.24
#8B308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8B308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B308C
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B308C#FFFFFF#000000##FFFFFF
##8B308C1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#465B8A
Tritanopia (blue-blind)
#8F3D5A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b308c;
/* rgb */ color: rgb(139, 48, 140);
/* oklch */ color: oklch(47.8% 0.166 327.4);
Tailwind
colors: {
  custom: {
    50: '#b070ae',
    500: '#8b308c',
    950: '#000000',
  },
}
SCSS
$custom: #8b308c;
$custom-light: #b070ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8b308c",
  "rgb": {
    "r": 139,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 299.348,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47781,
    "c": 0.16642,
    "h": 327.4
  },
  "luminance": 0.09496
}

Semantic roles & 50–950 ramp

primary
#8B308C
secondary
#65B364
accent
#D84F51
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8B308C

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

Preview Lab → · Contrast checker → · Palette generator →

#8B308C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva