#8A5FB2#8A5FB2

#8A5FB2 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.6% C 0.131 H 306.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5FB2
RGBrgb(138, 95, 178)
HSLhsl(271, 35%, 54%)
HSVhsv(271, 47%, 70%)
CMYKcmyk(22.5%, 46.6%, 0%, 30.2%)
CIE-LABlab(48.01, 33.89, -37.68)
CIE-LCHlch(48.01, 50.68, 311.97°)
OKLaboklab(56.57% 0.0781 -0.1052)
OKLCHoklch(56.57% 0.131 306.6)
XYZxyz(22.6077, 16.8022, 44.1630)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FB2 #87B25F
analogous
#605FB2 #8A5FB2 #B25FB0
triadic
#8A5FB2 #B28A5F #5FB28A
tetradic
#8A5FB2 #B2605F #87B25F #5FB0B2
square
#8A5FB2 #B2605F #87B25F #5FB0B2
split-complementary
#8A5FB2 #B0B25F #5FB260
monochromatic
#4C3166 #6B458F #8A5FB2 #A888C6 #C6B2DA

Accessibility & contrast

On white

4.82
#8A5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FB2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FB2#FFFFFF#000000##FFFFFF
##8A5FB21.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A70B5
Deuteranopia (green-blind)
#5572B0
Tritanopia (blue-blind)
#846D80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5fb2;
/* rgb */ color: rgb(138, 95, 178);
/* oklch */ color: oklch(56.6% 0.131 306.6);
Tailwind
colors: {
  custom: {
    50: '#ae8dc9',
    500: '#8a5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fb2;
$custom-light: #ae8dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fb2",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 271.084,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56569,
    "c": 0.13104,
    "h": 306.6
  },
  "luminance": 0.16802
}

Semantic roles & 50–950 ramp

primary
#8A5FB2
secondary
#B6C8A5
accent
#CB5D92
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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