#8A3EB7#8A3EB7

#8A3EB7 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.188 H 310.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB7
RGBrgb(138, 62, 183)
HSLhsl(278, 49%, 48%)
HSVhsv(278, 66%, 72%)
CMYKcmyk(24.6%, 66.1%, 0%, 28.2%)
CIE-LABlab(41.64, 52.62, -50.76)
CIE-LCHlch(41.64, 73.12, 316.03°)
OKLaboklab(51.98% 0.1217 -0.1433)
OKLCHoklch(51.98% 0.188 310.3)
XYZxyz(20.7495, 12.2679, 46.0654)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB7 #6BB73E
analogous
#4D3EB7 #8A3EB7 #B73EA7
triadic
#8A3EB7 #B78A3E #3EB78A
tetradic
#8A3EB7 #B74D3E #6BB73E #3EA7B7
square
#8A3EB7 #B74D3E #6BB73E #3EA7B7
split-complementary
#8A3EB7 #A7B73E #3EB74D
monochromatic
#451F5C #682F89 #8A3EB7 #A667CB #C194DB

Accessibility & contrast

On white

6.08
#8A3EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A3EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB7#FFFFFF#000000##FFFFFF
##8A3EB71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2E63B4
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3eb7;
/* rgb */ color: rgb(138, 62, 183);
/* oklch */ color: oklch(52.0% 0.188 310.3);
Tailwind
colors: {
  custom: {
    50: '#b078cd',
    500: '#8a3eb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb7;
$custom-light: #b078cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb7",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 183
  },
  "hsl": {
    "h": 277.686,
    "s": 49.388,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51983,
    "c": 0.18801,
    "h": 310.3
  },
  "luminance": 0.12267
}

Semantic roles & 50–950 ramp

primary
#8A3EB7
secondary
#A1C68A
accent
#D94F82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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