#8748C2#8748C2

#8748C2 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.7% C 0.185 H 304.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8748C2
RGBrgb(135, 72, 194)
HSLhsl(271, 50%, 52%)
HSVhsv(271, 63%, 76%)
CMYKcmyk(30.4%, 62.9%, 0%, 23.9%)
CIE-LABlab(43.77, 49.57, -53.78)
CIE-LCHlch(43.77, 73.14, 312.66°)
OKLaboklab(53.67% 0.1053 -0.1523)
OKLCHoklch(53.67% 0.185 304.7)
XYZxyz(22.0445, 13.6808, 52.5078)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8748C2 #83C248
analogous
#4A48C2 #8748C2 #C248C0
triadic
#8748C2 #C28748 #48C287
tetradic
#8748C2 #C24A48 #83C248 #48C0C2
square
#8748C2 #C24A48 #83C248 #48C0C2
split-complementary
#8748C2 #C0C248 #48C24A
monochromatic
#49246C #68339A #8748C2 #A576D1 #C3A4E1

Accessibility & contrast

On white

5.62
#8748C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8748C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8748C2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8748C2#FFFFFF#000000##FFFFFF
##8748C21.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2967BF
Tritanopia (blue-blind)
#7C627E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8748c2;
/* rgb */ color: rgb(135, 72, 194);
/* oklch */ color: oklch(53.7% 0.185 304.7);
Tailwind
colors: {
  custom: {
    50: '#ae7ed5',
    500: '#8748c2',
    950: '#000000',
  },
}
SCSS
$custom: #8748c2;
$custom-light: #ae7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#8748c2",
  "rgb": {
    "r": 135,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 270.984,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53669,
    "c": 0.1852,
    "h": 304.7
  },
  "luminance": 0.13681
}

Semantic roles & 50–950 ramp

primary
#8748C2
secondary
#B2CE98
accent
#DA4E92
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8748C2

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

Preview Lab → · Contrast checker → · Palette generator →

#8748C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva