#8A5EF3#8A5EF3

#8A5EF3 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.5% C 0.213 H 292.5°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A5EF3
RGBrgb(138, 94, 243)
HSLhsl(258, 86%, 66%)
HSVhsv(258, 61%, 95%)
CMYKcmyk(43.2%, 61.3%, 0%, 4.7%)
CIE-LABlab(51.70, 51.09, -68.86)
CIE-LCHlch(51.70, 85.75, 306.57°)
OKLaboklab(60.54% 0.0814 -0.1966)
OKLCHoklch(60.54% 0.213 292.5)
XYZxyz(30.6572, 19.8788, 86.9984)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EF3 #C7F35E
analogous
#5E7CF3 #8A5EF3 #D45EF3
triadic
#8A5EF3 #F38A5E #5EF38A
tetradic
#8A5EF3 #F35E7C #C7F35E #5EF3D4
square
#8A5EF3 #F35E7C #C7F35E #5EF3D4
split-complementary
#8A5EF3 #F3D45E #7CF35E
monochromatic
#450FC8 #6125EF #8A5EF3 #B397F7 #DDD0FB

Accessibility & contrast

On white

4.22
#8A5EF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A5EF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EF3
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EF3#FFFFFF#000000##000000
##8A5EF31.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF8
Deuteranopia (green-blind)
#0078F0
Tritanopia (blue-blind)
#6C80A0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5ef3;
/* rgb */ color: rgb(138, 94, 243);
/* oklch */ color: oklch(60.5% 0.213 292.5);
Tailwind
colors: {
  custom: {
    50: '#b38ef8',
    500: '#8a5ef3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ef3;
$custom-light: #b38ef8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ef3",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 243
  },
  "hsl": {
    "h": 257.718,
    "s": 86.127,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.21278,
    "h": 292.5
  },
  "luminance": 0.1988
}

Semantic roles & 50–950 ramp

primary
#8A5EF3
secondary
#E0EFBE
accent
#E303A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5EF3

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

Preview Lab → · Contrast checker → · Palette generator →

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