#8A5FBC#8A5FBC

#8A5FBC is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.1% C 0.144 H 303.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5FBC
RGBrgb(138, 95, 188)
HSLhsl(268, 41%, 55%)
HSVhsv(268, 49%, 74%)
CMYKcmyk(26.6%, 49.5%, 0%, 26.3%)
CIE-LABlab(48.53, 36.31, -42.67)
CIE-LCHlch(48.53, 56.03, 310.40°)
OKLaboklab(57.13% 0.0793 -0.1197)
OKLCHoklch(57.13% 0.144 303.5)
XYZxyz(23.6486, 17.2186, 49.6449)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FBC #91BC5F
analogous
#5F62BC #8A5FBC #B85FBC
triadic
#8A5FBC #BC8A5F #5FBC8A
tetradic
#8A5FBC #BC5F62 #91BC5F #5FBCB8
square
#8A5FBC #BC5F62 #91BC5F #5FBCB8
split-complementary
#8A5FBC #BCB85F #62BC5F
monochromatic
#4E2F71 #6B419C #8A5FBC #AA8ACE #C9B5E0

Accessibility & contrast

On white

4.73
#8A5FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A5FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FBC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FBC#FFFFFF#000000##FFFFFF
##8A5FBC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4372BF
Deuteranopia (green-blind)
#4F73BA
Tritanopia (blue-blind)
#817085
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5fbc;
/* rgb */ color: rgb(138, 95, 188);
/* oklch */ color: oklch(57.1% 0.144 303.5);
Tailwind
colors: {
  custom: {
    50: '#ae8dd0',
    500: '#8a5fbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fbc;
$custom-light: #ae8dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fbc",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 267.742,
    "s": 40.969,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57131,
    "c": 0.14365,
    "h": 303.5
  },
  "luminance": 0.17219
}

Semantic roles & 50–950 ramp

primary
#8A5FBC
secondary
#BDCFA8
accent
#D15798
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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