#8A5FEF#8A5FEF

#8A5FEF is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.4% C 0.207 H 292.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A5FEF
RGBrgb(138, 95, 239)
HSLhsl(258, 82%, 65%)
HSVhsv(258, 60%, 94%)
CMYKcmyk(42.3%, 60.3%, 0%, 6.3%)
CIE-LABlab(51.63, 49.48, -66.74)
CIE-LCHlch(51.63, 83.08, 306.55°)
OKLaboklab(60.41% 0.0805 -0.1903)
OKLCHoklch(60.41% 0.207 292.9)
XYZxyz(30.1492, 19.8188, 83.8815)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FEF #C4EF5F
analogous
#5F7CEF #8A5FEF #D25FEF
triadic
#8A5FEF #EF8A5F #5FEF8A
tetradic
#8A5FEF #EF5F7C #C4EF5F #5FEFD2
square
#8A5FEF #EF5F7C #C4EF5F #5FEFD2
split-complementary
#8A5FEF #EFD25F #7CEF5F
monochromatic
#4713C0 #6127E9 #8A5FEF #B397F5 #DBCEFA

Accessibility & contrast

On white

4.23
#8A5FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#8A5FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FEF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FEF#FFFFFF#000000##000000
##8A5FEF1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF4
Deuteranopia (green-blind)
#0078EC
Tritanopia (blue-blind)
#6E7F9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5fef;
/* rgb */ color: rgb(138, 95, 239);
/* oklch */ color: oklch(60.4% 0.207 292.9);
Tailwind
colors: {
  custom: {
    50: '#b28ef5',
    500: '#8a5fef',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fef;
$custom-light: #b28ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fef",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 257.917,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60407,
    "c": 0.20668,
    "h": 292.9
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#8A5FEF
secondary
#DFEDBD
accent
#DE079E
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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