#8A57B3#8A57B3

#8A57B3 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.3% C 0.146 H 307.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A57B3
RGBrgb(138, 87, 179)
HSLhsl(273, 38%, 52%)
HSVhsv(273, 51%, 70%)
CMYKcmyk(22.9%, 51.4%, 0%, 29.8%)
CIE-LABlab(46.28, 38.67, -41.01)
CIE-LCHlch(46.28, 56.37, 313.32°)
OKLaboklab(55.3% 0.0895 -0.1149)
OKLCHoklch(55.3% 0.146 307.9)
XYZxyz(22.0245, 15.4746, 44.4657)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57B3 #80B357
analogous
#5C57B3 #8A57B3 #B357AE
triadic
#8A57B3 #B38A57 #57B38A
tetradic
#8A57B3 #B35C57 #80B357 #57AEB3
square
#8A57B3 #B35C57 #80B357 #57AEB3
split-complementary
#8A57B3 #AEB357 #57B35C
monochromatic
#4B2D63 #6B408D #8A57B3 #A781C6 #C5ABD9

Accessibility & contrast

On white

5.13
#8A57B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A57B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57B3
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57B3#FFFFFF#000000##FFFFFF
##8A57B31.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6CB6
Deuteranopia (green-blind)
#4C6EB1
Tritanopia (blue-blind)
#84677D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a57b3;
/* rgb */ color: rgb(138, 87, 179);
/* oklch */ color: oklch(55.3% 0.146 307.9);
Tailwind
colors: {
  custom: {
    50: '#ae88ca',
    500: '#8a57b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a57b3;
$custom-light: #ae88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57b3",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 273.261,
    "s": 37.705,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55296,
    "c": 0.14565,
    "h": 307.9
  },
  "luminance": 0.15474
}

Semantic roles & 50–950 ramp

primary
#8A57B3
secondary
#B1C79F
accent
#CE5A8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A57B3

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

Preview Lab → · Contrast checker → · Palette generator →

#8A57B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva