#8A2EFF#8A2EFF

#8A2EFF is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 56.1% C 0.275 H 295.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A2EFF
RGBrgb(138, 46, 255)
HSLhsl(266, 100%, 59%)
HSVhsv(266, 82%, 100%)
CMYKcmyk(45.9%, 82%, 0%, 0%)
CIE-LABlab(45.05, 75.40, -86.42)
CIE-LCHlch(45.05, 114.69, 311.10°)
OKLaboklab(56.12% 0.1191 -0.2479)
OKLCHoklch(56.12% 0.275 295.7)
XYZxyz(29.5033, 14.5765, 95.8474)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EFF #A3FF2E
analogous
#2E3BFF #8A2EFF #F22EFF
triadic
#8A2EFF #FF8A2E #2EFF8A
tetradic
#8A2EFF #FF2E3B #A3FF2E #2EFFF2
square
#8A2EFF #FF2E3B #A3FF2E #2EFFF2
split-complementary
#8A2EFF #FFF22E #3BFF2E
monochromatic
#4F00B3 #6A00F0 #8A2EFF #AC6BFF #CFA8FF

Accessibility & contrast

On white

5.36
#8A2EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8A2EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EFF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EFF#FFFFFF#000000##FFFFFF
##8A2EFF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CFF
Deuteranopia (green-blind)
#0067FB
Tritanopia (blue-blind)
#686D9A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a2eff;
/* rgb */ color: rgb(138, 46, 255);
/* oklch */ color: oklch(56.1% 0.275 295.7);
Tailwind
colors: {
  custom: {
    50: '#b774ff',
    500: '#8a2eff',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eff;
$custom-light: #b774ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eff",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 266.411,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56121,
    "c": 0.27502,
    "h": 295.7
  },
  "luminance": 0.14577
}

Semantic roles & 50–950 ramp

primary
#8A2EFF
secondary
#C9ED9B
accent
#FF29A1
background
#FCF7FF
surface
#F8EDFF
border
#D1C8D7
text
#130918
muted
#827B86

Preview Lab

Preview with #8A2EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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