#8948DB#8948DB

#8948DB is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.7% C 0.213 H 299.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8948DB
RGBrgb(137, 72, 219)
HSLhsl(267, 67%, 57%)
HSVhsv(267, 67%, 86%)
CMYKcmyk(37.4%, 67.1%, 0%, 14.1%)
CIE-LABlab(45.73, 56.07, -65.01)
CIE-LCHlch(45.73, 85.85, 310.78°)
OKLaboklab(55.67% 0.1056 -0.1853)
OKLCHoklch(55.67% 0.213 299.7)
XYZxyz(25.4169, 15.0673, 68.5733)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8948DB #9ADB48
analogous
#4851DB #8948DB #D348DB
triadic
#8948DB #DB8948 #48DB89
tetradic
#8948DB #DB4851 #9ADB48 #48DBD3
square
#8948DB #DB4851 #9ADB48 #48DBD3
split-complementary
#8948DB #DBD348 #51DB48
monochromatic
#4E1C8D #6A26C0 #8948DB #AA7BE5 #CBAEEF

Accessibility & contrast

On white

5.23
#8948DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8948DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8948DB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8948DB#FFFFFF#000000##FFFFFF
##8948DB1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#766A8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8948db;
/* rgb */ color: rgb(137, 72, 219);
/* oklch */ color: oklch(55.7% 0.213 299.7);
Tailwind
colors: {
  custom: {
    50: '#b17fe7',
    500: '#8948db',
    950: '#000000',
  },
}
SCSS
$custom: #8948db;
$custom-light: #b17fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#8948db",
  "rgb": {
    "r": 137,
    "g": 72,
    "b": 219
  },
  "hsl": {
    "h": 266.531,
    "s": 67.123,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55674,
    "c": 0.21325,
    "h": 299.7
  },
  "luminance": 0.15068
}

Semantic roles & 50–950 ramp

primary
#8948DB
secondary
#C3DDA2
accent
#EA3E9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8948DB

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

Preview Lab → · Contrast checker → · Palette generator →

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