#8A308B#8A308B

#8A308B is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.165 H 327.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8A308B
RGBrgb(138, 48, 139)
HSLhsl(299, 49%, 37%)
HSVhsv(299, 65%, 55%)
CMYKcmyk(0.7%, 65.5%, 0%, 45.5%)
CIE-LABlab(36.71, 50.01, -32.20)
CIE-LCHlch(36.71, 59.48, 327.22°)
OKLaboklab(47.58% 0.1389 -0.089)
OKLCHoklch(47.58% 0.165 327.3)
XYZxyz(16.1981, 9.3823, 25.3789)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A308B #318B30
analogous
#5D308B #8A308B #8B305F
triadic
#8A308B #8B8A30 #308B8A
tetradic
#8A308B #8B5D30 #318B30 #305F8B
square
#8A308B #8B5D30 #318B30 #305F8B
split-complementary
#8A308B #5F8B30 #308B5D
monochromatic
#301130 #5D205E #8A308B #B740B8 #CA6ACC

Accessibility & contrast

On white

7.30
#8A308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A308B
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A308B#FFFFFF#000000##FFFFFF
##8A308B1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8E
Deuteranopia (green-blind)
#455A89
Tritanopia (blue-blind)
#8E3C59
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a308b;
/* rgb */ color: rgb(138, 48, 139);
/* oklch */ color: oklch(47.6% 0.165 327.3);
Tailwind
colors: {
  custom: {
    50: '#af6fad',
    500: '#8a308b',
    950: '#000000',
  },
}
SCSS
$custom: #8a308b;
$custom-light: #af6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a308b",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 299.341,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47576,
    "c": 0.165,
    "h": 327.3
  },
  "luminance": 0.09381
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A308B

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

Preview Lab → · Contrast checker → · Palette generator →

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