#8A5FBB#8A5FBB

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

Color values

HEX#8A5FBB
RGBrgb(138, 95, 187)
HSLhsl(268, 40%, 55%)
HSVhsv(268, 49%, 73%)
CMYKcmyk(26.2%, 49.2%, 0%, 26.7%)
CIE-LABlab(48.48, 36.07, -42.17)
CIE-LCHlch(48.48, 55.49, 310.54°)
OKLaboklab(57.07% 0.0792 -0.1183)
OKLCHoklch(57.07% 0.142 303.8)
XYZxyz(23.5411, 17.1756, 49.0791)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FBB #90BB5F
analogous
#5F62BB #8A5FBB #B85FBB
triadic
#8A5FBB #BB8A5F #5FBB8A
tetradic
#8A5FBB #BB5F62 #90BB5F #5FBBB8
square
#8A5FBB #BB5F62 #90BB5F #5FBBB8
split-complementary
#8A5FBB #BBB85F #62BB5F
monochromatic
#4E3070 #6B429B #8A5FBB #A98ACD #C9B5E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5FBB#FFFFFF#000000##FFFFFF
##8A5FBB1.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)
#4472BE
Deuteranopia (green-blind)
#4F73B9
Tritanopia (blue-blind)
#826F84
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5fbb;
/* rgb */ color: rgb(138, 95, 187);
/* oklch */ color: oklch(57.1% 0.142 303.8);
Tailwind
colors: {
  custom: {
    50: '#ae8dd0',
    500: '#8a5fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fbb;
$custom-light: #ae8dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fbb",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 268.043,
    "s": 40.351,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57074,
    "c": 0.14239,
    "h": 303.8
  },
  "luminance": 0.17176
}

Semantic roles & 50–950 ramp

primary
#8A5FBB
secondary
#BCCEA8
accent
#D05898
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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