#8948D5#8948D5

#8948D5 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.2% C 0.207 H 301.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8948D5
RGBrgb(137, 72, 213)
HSLhsl(268, 63%, 56%)
HSVhsv(268, 66%, 84%)
CMYKcmyk(35.7%, 66.2%, 0%, 16.5%)
CIE-LABlab(45.30, 54.60, -62.27)
CIE-LCHlch(45.30, 82.82, 311.24°)
OKLaboklab(55.23% 0.1064 -0.1772)
OKLCHoklch(55.23% 0.207 301)
XYZxyz(24.6412, 14.7570, 64.4881)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948D5 #94D548
analogous
#484DD5 #8948D5 #D048D5
triadic
#8948D5 #D58948 #48D589
tetradic
#8948D5 #D5484D #94D548 #48D5D0
square
#8948D5 #D5484D #94D548 #48D5D0
split-complementary
#8948D5 #D5D048 #4DD548
monochromatic
#4D1E84 #6A2AB6 #8948D5 #A97AE0 #C9ACEC

Accessibility & contrast

On white

5.31
#8948D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8948D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948D5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948D5#FFFFFF#000000##FFFFFF
##8948D51.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#796889
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8948d5;
/* rgb */ color: rgb(137, 72, 213);
/* oklch */ color: oklch(55.2% 0.207 301.0);
Tailwind
colors: {
  custom: {
    50: '#b17fe3',
    500: '#8948d5',
    950: '#000000',
  },
}
SCSS
$custom: #8948d5;
$custom-light: #b17fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#8948d5",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 213
  },
  "hsl": {
    "h": 267.66,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55233,
    "c": 0.20668,
    "h": 301
  },
  "luminance": 0.14757
}

Semantic roles & 50–950 ramp

primary
#8948D5
secondary
#BFDA9F
accent
#E6429A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8948D5

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

Preview Lab → · Contrast checker → · Palette generator →

#8948D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva