#8A4FCB#8A4FCB

#8A4FCB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.6% C 0.186 H 302.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A4FCB
RGBrgb(138, 79, 203)
HSLhsl(269, 54%, 55%)
HSVhsv(269, 61%, 80%)
CMYKcmyk(32%, 61.1%, 0%, 20.4%)
CIE-LABlab(46.05, 48.80, -55.30)
CIE-LCHlch(46.05, 73.76, 311.43°)
OKLaboklab(55.59% 0.1005 -0.1567)
OKLCHoklch(55.59% 0.186 302.7)
XYZxyz(24.0542, 15.3070, 58.1756)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FCB #90CB4F
analogous
#4F52CB #8A4FCB #C84FCB
triadic
#8A4FCB #CB8A4F #4FCB8A
tetradic
#8A4FCB #CB4F52 #90CB4F #4FCBC8
square
#8A4FCB #CB4F52 #90CB4F #4FCBC8
split-complementary
#8A4FCB #CBC84F #52CB4F
monochromatic
#4E247B #6B32AA #8A4FCB #A97ED9 #C9ADE7

Accessibility & contrast

On white

5.17
#8A4FCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A4FCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FCB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FCB#FFFFFF#000000##FFFFFF
##8A4FCB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#2B6DC8
Tritanopia (blue-blind)
#7D6986
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4fcb;
/* rgb */ color: rgb(138, 79, 203);
/* oklch */ color: oklch(55.6% 0.186 302.7);
Tailwind
colors: {
  custom: {
    50: '#b083db',
    500: '#8a4fcb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fcb;
$custom-light: #b083db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fcb",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 203
  },
  "hsl": {
    "h": 268.548,
    "s": 54.386,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55589,
    "c": 0.1862,
    "h": 302.7
  },
  "luminance": 0.15307
}

Semantic roles & 50–950 ramp

primary
#8A4FCB
secondary
#BCD5A1
accent
#DE4A97
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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