#8A48D9#8A48D9

#8A48D9 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.211 H 300.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A48D9
RGBrgb(138, 72, 217)
HSLhsl(267, 66%, 57%)
HSVhsv(267, 67%, 85%)
CMYKcmyk(36.4%, 66.8%, 0%, 14.9%)
CIE-LABlab(45.70, 55.77, -63.91)
CIE-LCHlch(45.70, 84.82, 311.11°)
OKLaboklab(55.64% 0.1072 -0.182)
OKLCHoklch(55.64% 0.211 300.5)
XYZxyz(25.3199, 15.0476, 67.2027)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48D9 #97D948
analogous
#484FD9 #8A48D9 #D248D9
triadic
#8A48D9 #D98A48 #48D98A
tetradic
#8A48D9 #D9484F #97D948 #48D9D2
square
#8A48D9 #D9484F #97D948 #48D9D2
split-complementary
#8A48D9 #D9D248 #4FD948
monochromatic
#4E1D8A #6B27BD #8A48D9 #AA7BE4 #CBADEE

Accessibility & contrast

On white

5.24
#8A48D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A48D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48D9
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48D9#FFFFFF#000000##FFFFFF
##8A48D91.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#006BD6
Tritanopia (blue-blind)
#796A8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a48d9;
/* rgb */ color: rgb(138, 72, 217);
/* oklch */ color: oklch(55.6% 0.211 300.5);
Tailwind
colors: {
  custom: {
    50: '#b27fe6',
    500: '#8a48d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a48d9;
$custom-light: #b27fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48d9",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 217
  },
  "hsl": {
    "h": 267.31,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55635,
    "c": 0.21122,
    "h": 300.5
  },
  "luminance": 0.15048
}

Semantic roles & 50–950 ramp

primary
#8A48D9
secondary
#C1DCA1
accent
#E93F9B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A48D9

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

Preview Lab → · Contrast checker → · Palette generator →

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