#8A48FC#8A48FC

#8A48FC is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.3% C 0.249 H 294.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A48FC
RGBrgb(138, 72, 252)
HSLhsl(262, 97%, 64%)
HSVhsv(262, 71%, 99%)
CMYKcmyk(45.2%, 71.4%, 0%, 1.2%)
CIE-LABlab(48.34, 64.47, -79.35)
CIE-LCHlch(48.34, 102.24, 309.09°)
OKLaboklab(58.34% 0.1013 -0.2274)
OKLCHoklch(58.34% 0.249 294)
XYZxyz(30.3645, 17.0654, 93.7707)
Luminance0.1707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48FC #BAFC48
analogous
#4860FC #8A48FC #E448FC
triadic
#8A48FC #FC8A48 #48FC8A
tetradic
#8A48FC #FC4860 #BAFC48 #48FCE4
square
#8A48FC #FC4860 #BAFC48 #48FCE4
split-complementary
#8A48FC #FCE448 #60FC48
monochromatic
#4B03C6 #640CFB #8A48FC #B084FD #D7C0FE

Accessibility & contrast

On white

4.76
#8A48FC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A48FC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48FC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48FC#FFFFFF#000000##FFFFFF
##8A48FC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#0070F8
Tritanopia (blue-blind)
#69779E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a48fc;
/* rgb */ color: rgb(138, 72, 252);
/* oklch */ color: oklch(58.3% 0.249 294.0);
Tailwind
colors: {
  custom: {
    50: '#b581ff',
    500: '#8a48fc',
    950: '#000000',
  },
}
SCSS
$custom: #8a48fc;
$custom-light: #b581ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48fc",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 252
  },
  "hsl": {
    "h": 262,
    "s": 96.774,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58341,
    "c": 0.2489,
    "h": 294
  },
  "luminance": 0.17066
}

Semantic roles & 50–950 ramp

primary
#8A48FC
secondary
#D8F0B0
accent
#E60091
background
#FBF8FF
surface
#F7EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #8A48FC

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

Preview Lab → · Contrast checker → · Palette generator →

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