#8B5FA2#8B5FA2

#8B5FA2 is a mid, moderate violet. Relative luminance 0.163; OKLCH L 55.8% C 0.112 H 313.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8B5FA2
RGBrgb(139, 95, 162)
HSLhsl(279, 26%, 50%)
HSVhsv(279, 41%, 64%)
CMYKcmyk(14.2%, 41.4%, 0%, 36.5%)
CIE-LABlab(47.34, 30.48, -29.34)
CIE-LCHlch(47.34, 42.31, 316.10°)
OKLaboklab(55.84% 0.0765 -0.0811)
OKLCHoklch(55.84% 0.112 313.3)
XYZxyz(21.2602, 16.2825, 36.1983)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5FA2 #76A25F
analogous
#695FA2 #8B5FA2 #A25F97
triadic
#8B5FA2 #A28B5F #5FA28B
tetradic
#8B5FA2 #A2695F #76A25F #5F97A2
square
#8B5FA2 #A2695F #76A25F #5F97A2
split-complementary
#8B5FA2 #97A25F #5FA269
monochromatic
#493155 #6A487C #8B5FA2 #A786B8 #C3ACCF

Accessibility & contrast

On white

4.93
#8B5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8B5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B5FA2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5FA2#FFFFFF#000000##FFFFFF
##8B5FA21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#536EA4
Deuteranopia (green-blind)
#5E71A0
Tritanopia (blue-blind)
#896879
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8b5fa2;
/* rgb */ color: rgb(139, 95, 162);
/* oklch */ color: oklch(55.8% 0.112 313.3);
Tailwind
colors: {
  custom: {
    50: '#ae8dbe',
    500: '#8b5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8b5fa2;
$custom-light: #ae8dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5fa2",
  "rgb": {
    "r": 139,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 279.403,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.1115,
    "h": 313.3
  },
  "luminance": 0.16282
}

Semantic roles & 50–950 ramp

primary
#8B5FA2
secondary
#AABD9F
accent
#C36585
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8B5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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