#8A5FA2#8A5FA2

#8A5FA2 is a mid, moderate violet. Relative luminance 0.162; OKLCH L 55.7% C 0.111 H 312.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA2
RGBrgb(138, 95, 162)
HSLhsl(279, 26%, 50%)
HSVhsv(279, 41%, 64%)
CMYKcmyk(14.8%, 41.4%, 0%, 36.5%)
CIE-LABlab(47.23, 30.17, -29.52)
CIE-LCHlch(47.23, 42.21, 315.63°)
OKLaboklab(55.73% 0.0753 -0.0816)
OKLCHoklch(55.73% 0.111 312.7)
XYZxyz(21.0939, 16.1967, 36.1905)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA2 #77A25F
analogous
#685FA2 #8A5FA2 #A25F98
triadic
#8A5FA2 #A28A5F #5FA28A
tetradic
#8A5FA2 #A2685F #77A25F #5F98A2
square
#8A5FA2 #A2685F #77A25F #5F98A2
split-complementary
#8A5FA2 #98A25F #5FA268
monochromatic
#483155 #69487C #8A5FA2 #A686B8 #C3ACCF

Accessibility & contrast

On white

4.95
#8A5FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A5FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA2#FFFFFF#000000##FFFFFF
##8A5FA21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526EA4
Deuteranopia (green-blind)
#5D71A0
Tritanopia (blue-blind)
#886979
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5fa2;
/* rgb */ color: rgb(138, 95, 162);
/* oklch */ color: oklch(55.7% 0.111 312.7);
Tailwind
colors: {
  custom: {
    50: '#ad8dbe',
    500: '#8a5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa2;
$custom-light: #ad8dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa2",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 278.507,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5573,
    "c": 0.11106,
    "h": 312.7
  },
  "luminance": 0.16196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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