#8A3EB8#8A3EB8

#8A3EB8 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.1% C 0.189 H 310.0°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB8
RGBrgb(138, 62, 184)
HSLhsl(277, 50%, 48%)
HSVhsv(277, 66%, 72%)
CMYKcmyk(25%, 66.3%, 0%, 27.8%)
CIE-LABlab(41.70, 52.84, -51.25)
CIE-LCHlch(41.70, 73.61, 315.88°)
OKLaboklab(52.05% 0.1216 -0.1447)
OKLCHoklch(52.05% 0.189 310)
XYZxyz(20.8539, 12.3096, 46.6155)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB8 #6CB83E
analogous
#4D3EB8 #8A3EB8 #B83EA9
triadic
#8A3EB8 #B88A3E #3EB88A
tetradic
#8A3EB8 #B84D3E #6CB83E #3EA9B8
square
#8A3EB8 #B84D3E #6CB83E #3EA9B8
split-complementary
#8A3EB8 #A9B83E #3EB84D
monochromatic
#451F5C #682F8A #8A3EB8 #A667CC #C195DB

Accessibility & contrast

On white

6.07
#8A3EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A3EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB8
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB8#FFFFFF#000000##FFFFFF
##8A3EB81.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#2C64B5
Tritanopia (blue-blind)
#845776
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3eb8;
/* rgb */ color: rgb(138, 62, 184);
/* oklch */ color: oklch(52.1% 0.189 310.0);
Tailwind
colors: {
  custom: {
    50: '#b079ce',
    500: '#8a3eb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb8;
$custom-light: #b079ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb8",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 277.377,
    "s": 49.593,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52051,
    "c": 0.18904,
    "h": 310
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#8A3EB8
secondary
#A2C78B
accent
#D94F83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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