#8A3FBD#8A3FBD

#8A3FBD is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.5% C 0.193 H 308.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A3FBD
RGBrgb(138, 63, 189)
HSLhsl(276, 50%, 49%)
HSVhsv(276, 67%, 74%)
CMYKcmyk(27%, 66.7%, 0%, 25.9%)
CIE-LABlab(42.20, 53.50, -53.37)
CIE-LCHlch(42.20, 75.57, 315.07°)
OKLaboklab(52.52% 0.1201 -0.151)
OKLCHoklch(52.52% 0.193 308.5)
XYZxyz(21.4422, 12.6328, 49.4430)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FBD #72BD3F
analogous
#4B3FBD #8A3FBD #BD3FB1
triadic
#8A3FBD #BD8A3F #3FBD8A
tetradic
#8A3FBD #BD4B3F #72BD3F #3FB1BD
square
#8A3FBD #BD4B3F #72BD3F #3FB1BD
split-complementary
#8A3FBD #B1BD3F #3FBD4B
monochromatic
#472061 #68308F #8A3FBD #A66BCE #C299DD

Accessibility & contrast

On white

5.96
#8A3FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A3FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FBD
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FBD#FFFFFF#000000##FFFFFF
##8A3FBD1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#2764BA
Tritanopia (blue-blind)
#825A79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3fbd;
/* rgb */ color: rgb(138, 63, 189);
/* oklch */ color: oklch(52.5% 0.193 308.5);
Tailwind
colors: {
  custom: {
    50: '#b079d2',
    500: '#8a3fbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fbd;
$custom-light: #b079d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fbd",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 189
  },
  "hsl": {
    "h": 275.714,
    "s": 50,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52516,
    "c": 0.19291,
    "h": 308.5
  },
  "luminance": 0.12632
}

Semantic roles & 50–950 ramp

primary
#8A3FBD
secondary
#A6C98F
accent
#DA4E87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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