#8957B2#8957B2

#8957B2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.1% C 0.144 H 307.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8957B2
RGBrgb(137, 87, 178)
HSLhsl(273, 37%, 52%)
HSVhsv(273, 51%, 70%)
CMYKcmyk(23%, 51.1%, 0%, 30.2%)
CIE-LABlab(46.11, 38.16, -40.70)
CIE-LCHlch(46.11, 55.79, 313.16°)
OKLaboklab(55.13% 0.0882 -0.114)
OKLCHoklch(55.13% 0.144 307.7)
XYZxyz(21.7590, 15.3494, 43.9273)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8957B2 #80B257
analogous
#5C57B2 #8957B2 #B257AE
triadic
#8957B2 #B28957 #57B289
tetradic
#8957B2 #B25C57 #80B257 #57AEB2
square
#8957B2 #B25C57 #80B257 #57AEB2
split-complementary
#8957B2 #AEB257 #57B25C
monochromatic
#4A2D62 #6A408C #8957B2 #A681C5 #C4ABD8

Accessibility & contrast

On white

5.16
#8957B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8957B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8957B2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8957B2#FFFFFF#000000##FFFFFF
##8957B21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#83677C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8957b2;
/* rgb */ color: rgb(137, 87, 178);
/* oklch */ color: oklch(55.1% 0.144 307.7);
Tailwind
colors: {
  custom: {
    50: '#ae88c9',
    500: '#8957b2',
    950: '#000000',
  },
}
SCSS
$custom: #8957b2;
$custom-light: #ae88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8957b2",
  "rgb": {
    "r": 137,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 272.967,
    "s": 37.143,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55128,
    "c": 0.14412,
    "h": 307.7
  },
  "luminance": 0.15349
}

Semantic roles & 50–950 ramp

primary
#8957B2
secondary
#B0C69E
accent
#CD5B8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8957B2

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

Preview Lab → · Contrast checker → · Palette generator →

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