#8A48DA#8A48DA

#8A48DA is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.7% C 0.212 H 300.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A48DA
RGBrgb(138, 72, 218)
HSLhsl(267, 66%, 57%)
HSVhsv(267, 67%, 85%)
CMYKcmyk(36.7%, 67%, 0%, 14.5%)
CIE-LABlab(45.77, 56.02, -64.36)
CIE-LCHlch(45.77, 85.33, 311.04°)
OKLaboklab(55.71% 0.1071 -0.1833)
OKLCHoklch(55.71% 0.212 300.3)
XYZxyz(25.4504, 15.0997, 67.8898)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48DA #98DA48
analogous
#484FDA #8A48DA #D348DA
triadic
#8A48DA #DA8A48 #48DA8A
tetradic
#8A48DA #DA484F #98DA48 #48DAD3
square
#8A48DA #DA484F #98DA48 #48DAD3
split-complementary
#8A48DA #DAD348 #4FDA48
monochromatic
#4E1C8B #6B26BE #8A48DA #AB7BE4 #CBAEEF

Accessibility & contrast

On white

5.22
#8A48DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8A48DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48DA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48DA#FFFFFF#000000##FFFFFF
##8A48DA1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#006BD7
Tritanopia (blue-blind)
#786A8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a48da;
/* rgb */ color: rgb(138, 72, 218);
/* oklch */ color: oklch(55.7% 0.212 300.3);
Tailwind
colors: {
  custom: {
    50: '#b27fe6',
    500: '#8a48da',
    950: '#000000',
  },
}
SCSS
$custom: #8a48da;
$custom-light: #b27fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48da",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 218
  },
  "hsl": {
    "h": 267.123,
    "s": 66.364,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55709,
    "c": 0.21231,
    "h": 300.3
  },
  "luminance": 0.151
}

Semantic roles & 50–950 ramp

primary
#8A48DA
secondary
#C2DDA1
accent
#E93F9C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A48DA

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

Preview Lab → · Contrast checker → · Palette generator →

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