#8958CA#8958CA

#8958CA is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.8% C 0.172 H 300.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8958CA
RGBrgb(137, 88, 202)
HSLhsl(266, 52%, 57%)
HSVhsv(266, 56%, 79%)
CMYKcmyk(32.2%, 56.4%, 0%, 20.8%)
CIE-LABlab(47.70, 43.47, -52.08)
CIE-LCHlch(47.70, 67.84, 309.85°)
OKLaboklab(56.75% 0.0882 -0.1473)
OKLCHoklch(56.75% 0.172 300.9)
XYZxyz(24.4644, 16.5620, 57.7736)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8958CA #99CA58
analogous
#5860CA #8958CA #C258CA
triadic
#8958CA #CA8958 #58CA89
tetradic
#8958CA #CA5860 #99CA58 #58CAC2
square
#8958CA #CA5860 #99CA58 #58CAC2
split-complementary
#8958CA #CAC258 #60CA58
monochromatic
#4E287F #6A37AE #8958CA #AA86D9 #CBB5E7

Accessibility & contrast

On white

4.87
#8958CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8958CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8958CA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8958CA#FFFFFF#000000##FFFFFF
##8958CA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2671CE
Deuteranopia (green-blind)
#3971C7
Tritanopia (blue-blind)
#7C6F88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8958ca;
/* rgb */ color: rgb(137, 88, 202);
/* oklch */ color: oklch(56.8% 0.172 300.9);
Tailwind
colors: {
  custom: {
    50: '#af89db',
    500: '#8958ca',
    950: '#000000',
  },
}
SCSS
$custom: #8958ca;
$custom-light: #af89db;
$custom-dark: #000000;
JSON
{
  "hex": "#8958ca",
  "rgb": {
    "r": 137,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 265.789,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56751,
    "c": 0.1717,
    "h": 300.9
  },
  "luminance": 0.16562
}

Semantic roles & 50–950 ramp

primary
#8958CA
secondary
#C2D6A8
accent
#DB4D9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8958CA

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

Preview Lab → · Contrast checker → · Palette generator →

#8958CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva