#8A5EF2#8A5EF2

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

Color values

HEX#8A5EF2
RGBrgb(138, 94, 242)
HSLhsl(258, 85%, 66%)
HSVhsv(258, 61%, 95%)
CMYKcmyk(43%, 61.2%, 0%, 5.1%)
CIE-LABlab(51.63, 50.82, -68.42)
CIE-LCHlch(51.63, 85.23, 306.61°)
OKLaboklab(60.47% 0.0814 -0.1953)
OKLCHoklch(60.47% 0.212 292.6)
XYZxyz(30.5066, 19.8186, 86.2052)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EF2 #C6F25E
analogous
#5E7CF2 #8A5EF2 #D45EF2
triadic
#8A5EF2 #F28A5E #5EF28A
tetradic
#8A5EF2 #F25E7C #C6F25E #5EF2D4
square
#8A5EF2 #F25E7C #C6F25E #5EF2D4
split-complementary
#8A5EF2 #F2D45E #7CF25E
monochromatic
#4610C6 #6125ED #8A5EF2 #B397F7 #DCCFFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5EF2#FFFFFF#000000##000000
##8A5EF21.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)
#007DF7
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#6D809F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5ef2;
/* rgb */ color: rgb(138, 94, 242);
/* oklch */ color: oklch(60.5% 0.212 292.6);
Tailwind
colors: {
  custom: {
    50: '#b38ef7',
    500: '#8a5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ef2;
$custom-light: #b38ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ef2",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 257.838,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60471,
    "c": 0.21159,
    "h": 292.6
  },
  "luminance": 0.19819
}

Semantic roles & 50–950 ramp

primary
#8A5EF2
secondary
#E0EEBD
accent
#E204A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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