#8958CB#8958CB

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

Color values

HEX#8958CB
RGBrgb(137, 88, 203)
HSLhsl(266, 53%, 57%)
HSVhsv(266, 57%, 80%)
CMYKcmyk(32.5%, 56.7%, 0%, 20.4%)
CIE-LABlab(47.76, 43.72, -52.56)
CIE-LCHlch(47.76, 68.37, 309.76°)
OKLaboklab(56.82% 0.0882 -0.1487)
OKLCHoklch(56.82% 0.173 300.7)
XYZxyz(24.5832, 16.6095, 58.3991)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8958CB #9ACB58
analogous
#5861CB #8958CB #C258CB
triadic
#8958CB #CB8958 #58CB89
tetradic
#8958CB #CB5861 #9ACB58 #58CBC2
square
#8958CB #CB5861 #9ACB58 #58CBC2
split-complementary
#8958CB #CBC258 #61CB58
monochromatic
#4E2881 #6A37AF #8958CB #AA87DA #CBB5E8

Accessibility & contrast

On white

4.86
#8958CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#8958CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8958CB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8958CB#FFFFFF#000000##FFFFFF
##8958CB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2571CF
Deuteranopia (green-blind)
#3871C8
Tritanopia (blue-blind)
#7C6F89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8958cb;
/* rgb */ color: rgb(137, 88, 203);
/* oklch */ color: oklch(56.8% 0.173 300.7);
Tailwind
colors: {
  custom: {
    50: '#af89db',
    500: '#8958cb',
    950: '#000000',
  },
}
SCSS
$custom: #8958cb;
$custom-light: #af89db;
$custom-dark: #000000;
JSON
{
  "hex": "#8958cb",
  "rgb": {
    "r": 137,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 265.565,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56815,
    "c": 0.17291,
    "h": 300.7
  },
  "luminance": 0.1661
}

Semantic roles & 50–950 ramp

primary
#8958CB
secondary
#C3D7A8
accent
#DC4C9F
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8958CB

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

Preview Lab → · Contrast checker → · Palette generator →

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