#8A3CB7#8A3CB7

#8A3CB7 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.191 H 310.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB7
RGBrgb(138, 60, 183)
HSLhsl(278, 51%, 48%)
HSVhsv(278, 67%, 72%)
CMYKcmyk(24.6%, 67.2%, 0%, 28.2%)
CIE-LABlab(41.30, 53.55, -51.31)
CIE-LCHlch(41.30, 74.16, 316.23°)
OKLaboklab(51.74% 0.1239 -0.1449)
OKLCHoklch(51.74% 0.191 310.5)
XYZxyz(20.6427, 12.0543, 46.0299)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB7 #69B73C
analogous
#4D3CB7 #8A3CB7 #B73CA6
triadic
#8A3CB7 #B78A3C #3CB78A
tetradic
#8A3CB7 #B74D3C #69B73C #3CA6B7
square
#8A3CB7 #B74D3C #69B73C #3CA6B7
split-complementary
#8A3CB7 #A6B73C #3CB74D
monochromatic
#441E5B #672D89 #8A3CB7 #A664CC #C192DB

Accessibility & contrast

On white

6.16
#8A3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A3CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CB7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB7#FFFFFF#000000##FFFFFF
##8A3CB71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#2B63B4
Tritanopia (blue-blind)
#845675
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3cb7;
/* rgb */ color: rgb(138, 60, 183);
/* oklch */ color: oklch(51.7% 0.191 310.5);
Tailwind
colors: {
  custom: {
    50: '#b077cd',
    500: '#8a3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb7;
$custom-light: #b077cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb7",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 278.049,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51742,
    "c": 0.19068,
    "h": 310.5
  },
  "luminance": 0.12054
}

Semantic roles & 50–950 ramp

primary
#8A3CB7
secondary
#9FC688
accent
#DA4E81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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