#8A4CBB#8A4CBB

#8A4CBB is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.172 H 307.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A4CBB
RGBrgb(138, 76, 187)
HSLhsl(274, 45%, 52%)
HSVhsv(274, 59%, 73%)
CMYKcmyk(26.2%, 59.4%, 0%, 26.7%)
CIE-LABlab(44.46, 46.54, -48.58)
CIE-LCHlch(44.46, 67.27, 313.77°)
OKLaboklab(54.11% 0.1046 -0.137)
OKLCHoklch(54.11% 0.172 307.4)
XYZxyz(22.0335, 14.1603, 48.5765)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CBB #7DBB4C
analogous
#534CBB #8A4CBB #BB4CB4
triadic
#8A4CBB #BB8A4C #4CBB8A
tetradic
#8A4CBB #BB534C #7DBB4C #4CB4BB
square
#8A4CBB #BB534C #7DBB4C #4CB4BB
split-complementary
#8A4CBB #B4BB4C #4CBB53
monochromatic
#4A2766 #6A3892 #8A4CBB #A778CC #C4A5DD

Accessibility & contrast

On white

5.48
#8A4CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A4CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CBB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CBB#FFFFFF#000000##FFFFFF
##8A4CBB1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E67BF
Deuteranopia (green-blind)
#3A6AB8
Tritanopia (blue-blind)
#82617C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4cbb;
/* rgb */ color: rgb(138, 76, 187);
/* oklch */ color: oklch(54.1% 0.172 307.4);
Tailwind
colors: {
  custom: {
    50: '#af81d0',
    500: '#8a4cbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cbb;
$custom-light: #af81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cbb",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 273.514,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5411,
    "c": 0.17233,
    "h": 307.4
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#8A4CBB
secondary
#AFCA99
accent
#D5538C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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