#8A5FA8#8A5FA8

#8A5FA8 is a mid, moderate violet. Relative luminance 0.164; OKLCH L 56.0% C 0.118 H 310.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA8
RGBrgb(138, 95, 168)
HSLhsl(275, 30%, 52%)
HSVhsv(275, 43%, 66%)
CMYKcmyk(17.9%, 43.5%, 0%, 34.1%)
CIE-LABlab(47.51, 31.54, -32.61)
CIE-LCHlch(47.51, 45.37, 314.05°)
OKLaboklab(56.04% 0.0765 -0.0905)
OKLCHoklch(56.04% 0.119 310.2)
XYZxyz(21.6400, 16.4152, 39.0666)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA8 #7DA85F
analogous
#665FA8 #8A5FA8 #A85FA2
triadic
#8A5FA8 #A88A5F #5FA88A
tetradic
#8A5FA8 #A8665F #7DA85F #5FA2A8
square
#8A5FA8 #A8665F #7DA85F #5FA2A8
split-complementary
#8A5FA8 #A2A85F #5FA866
monochromatic
#4A325B #6A4783 #8A5FA8 #A787BE #C4AED3

Accessibility & contrast

On white

4.90
#8A5FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A5FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA8#FFFFFF#000000##FFFFFF
##8A5FA81.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6FAB
Deuteranopia (green-blind)
#5A72A6
Tritanopia (blue-blind)
#866A7B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5fa8;
/* rgb */ color: rgb(138, 95, 168);
/* oklch */ color: oklch(56.0% 0.118 310.2);
Tailwind
colors: {
  custom: {
    50: '#ad8dc2',
    500: '#8a5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa8;
$custom-light: #ad8dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa8",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 275.342,
    "s": 29.555,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56036,
    "c": 0.1185,
    "h": 310.2
  },
  "luminance": 0.16415
}

Semantic roles & 50–950 ramp

primary
#8A5FA8
secondary
#AFC1A1
accent
#C6628B
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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