#8958F2#8958F2

#8958F2 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.5% C 0.219 H 293.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8958F2
RGBrgb(137, 88, 242)
HSLhsl(259, 86%, 65%)
HSVhsv(259, 64%, 95%)
CMYKcmyk(43.4%, 63.6%, 0%, 5.1%)
CIE-LABlab(50.34, 53.82, -70.51)
CIE-LCHlch(50.34, 88.70, 307.36°)
OKLaboklab(59.51% 0.0864 -0.2015)
OKLCHoklch(59.51% 0.219 293.2)
XYZxyz(29.8289, 18.7078, 86.0265)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8958F2 #C1F258
analogous
#5874F2 #8958F2 #D658F2
triadic
#8958F2 #F28958 #58F289
tetradic
#8958F2 #F25874 #C1F258 #58F2D6
square
#8958F2 #F25874 #C1F258 #58F2D6
split-complementary
#8958F2 #F2D658 #74F258
monochromatic
#480FC1 #611FEE #8958F2 #B191F6 #D9CAFB

Accessibility & contrast

On white

4.43
#8958F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#8958F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8958F2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8958F2#FFFFFF#000000##000000
##8958F21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#6B7C9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8958f2;
/* rgb */ color: rgb(137, 88, 242);
/* oklch */ color: oklch(59.5% 0.219 293.2);
Tailwind
colors: {
  custom: {
    50: '#b38af7',
    500: '#8958f2',
    950: '#000000',
  },
}
SCSS
$custom: #8958f2;
$custom-light: #b38af7;
$custom-dark: #000000;
JSON
{
  "hex": "#8958f2",
  "rgb": {
    "r": 137,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 259.091,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59514,
    "c": 0.21922,
    "h": 293.2
  },
  "luminance": 0.18709
}

Semantic roles & 50–950 ramp

primary
#8958F2
secondary
#DDEDB8
accent
#E2039B
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8958F2

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

Preview Lab → · Contrast checker → · Palette generator →

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