#8957E4#8957E4

#8957E4 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.4% C 0.204 H 295.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8957E4
RGBrgb(137, 87, 228)
HSLhsl(261, 72%, 62%)
HSVhsv(261, 62%, 89%)
CMYKcmyk(39.9%, 61.8%, 0%, 10.6%)
CIE-LABlab(49.17, 50.68, -64.53)
CIE-LCHlch(49.17, 82.05, 308.14°)
OKLaboklab(58.36% 0.0887 -0.1839)
OKLCHoklch(58.36% 0.204 295.7)
XYZxyz(27.7246, 17.7356, 75.3463)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8957E4 #B2E457
analogous
#576BE4 #8957E4 #D057E4
triadic
#8957E4 #E48957 #57E489
tetradic
#8957E4 #E4576B #B2E457 #57E4D0
square
#8957E4 #E4576B #B2E457 #57E4D0
split-complementary
#8957E4 #E4D057 #6BE457
monochromatic
#4C1BA6 #6423DB #8957E4 #AE8CEC #D3C0F5

Accessibility & contrast

On white

4.62
#8957E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#8957E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8957E4
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8957E4#FFFFFF#000000##FFFFFF
##8957E41.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#727796
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8957e4;
/* rgb */ color: rgb(137, 87, 228);
/* oklch */ color: oklch(58.4% 0.204 295.7);
Tailwind
colors: {
  custom: {
    50: '#b189ed',
    500: '#8957e4',
    950: '#000000',
  },
}
SCSS
$custom: #8957e4;
$custom-light: #b189ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8957e4",
  "rgb": {
    "r": 137,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 261.277,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58359,
    "c": 0.20416,
    "h": 295.7
  },
  "luminance": 0.17736
}

Semantic roles & 50–950 ramp

primary
#8957E4
secondary
#D3E6B1
accent
#D4118F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8957E4

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

Preview Lab → · Contrast checker → · Palette generator →

#8957E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva