#8A5FF2#8A5FF2

#8A5FF2 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.6% C 0.210 H 292.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5FF2
RGBrgb(138, 95, 242)
HSLhsl(258, 85%, 66%)
HSVhsv(258, 61%, 95%)
CMYKcmyk(43%, 60.7%, 0%, 5.1%)
CIE-LABlab(51.83, 50.28, -68.09)
CIE-LCHlch(51.83, 84.64, 306.45°)
OKLaboklab(60.62% 0.0804 -0.1943)
OKLCHoklch(60.62% 0.21 292.5)
XYZxyz(30.5961, 19.9976, 86.2351)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FF2 #C7F25F
analogous
#5F7DF2 #8A5FF2 #D35FF2
triadic
#8A5FF2 #F28A5F #5FF28A
tetradic
#8A5FF2 #F25F7D #C7F25F #5FF2D3
square
#8A5FF2 #F25F7D #C7F25F #5FF2D3
split-complementary
#8A5FF2 #F2D35F #7DF25F
monochromatic
#4510C6 #6126ED #8A5FF2 #B398F7 #DDD0FB

Accessibility & contrast

On white

4.20
#8A5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8A5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FF2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FF2#FFFFFF#000000##000000
##8A5FF21.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#6D80A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5ff2;
/* rgb */ color: rgb(138, 95, 242);
/* oklch */ color: oklch(60.6% 0.210 292.5);
Tailwind
colors: {
  custom: {
    50: '#b38ef7',
    500: '#8a5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ff2;
$custom-light: #b38ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ff2",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 257.551,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60619,
    "c": 0.21028,
    "h": 292.5
  },
  "luminance": 0.19998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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