#8A5FAF#8A5FAF

#8A5FAF is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.4% C 0.127 H 307.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A5FAF
RGBrgb(138, 95, 175)
HSLhsl(272, 33%, 53%)
HSVhsv(272, 46%, 69%)
CMYKcmyk(21.1%, 45.7%, 0%, 31.4%)
CIE-LABlab(47.86, 33.18, -36.17)
CIE-LCHlch(47.86, 49.08, 312.53°)
OKLaboklab(56.41% 0.0776 -0.1008)
OKLCHoklch(56.41% 0.127 307.6)
XYZxyz(22.3098, 16.6831, 42.5940)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FAF #84AF5F
analogous
#625FAF #8A5FAF #AF5FAC
triadic
#8A5FAF #AF8A5F #5FAF8A
tetradic
#8A5FAF #AF625F #84AF5F #5FACAF
square
#8A5FAF #AF625F #84AF5F #5FACAF
split-complementary
#8A5FAF #ACAF5F #5FAF62
monochromatic
#4C3162 #6B468B #8A5FAF #A888C3 #C6B1D8

Accessibility & contrast

On white

4.84
#8A5FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8A5FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FAF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FAF#FFFFFF#000000##FFFFFF
##8A5FAF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C70B2
Deuteranopia (green-blind)
#5672AD
Tritanopia (blue-blind)
#856C7F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5faf;
/* rgb */ color: rgb(138, 95, 175);
/* oklch */ color: oklch(56.4% 0.127 307.6);
Tailwind
colors: {
  custom: {
    50: '#ae8dc7',
    500: '#8a5faf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5faf;
$custom-light: #ae8dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5faf",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 272.25,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56406,
    "c": 0.12727,
    "h": 307.6
  },
  "luminance": 0.16683
}

Semantic roles & 50–950 ramp

primary
#8A5FAF
secondary
#B4C6A4
accent
#C95E90
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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