#8A3BEF#8A3BEF

#8A3BEF is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.9% C 0.249 H 297.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A3BEF
RGBrgb(138, 59, 239)
HSLhsl(266, 85%, 58%)
HSVhsv(266, 75%, 94%)
CMYKcmyk(42.3%, 75.3%, 0%, 6.3%)
CIE-LABlab(45.31, 66.93, -77.02)
CIE-LCHlch(45.31, 102.04, 310.99°)
OKLaboklab(55.88% 0.115 -0.2205)
OKLCHoklch(55.88% 0.249 297.5)
XYZxyz(27.6211, 14.7627, 83.0388)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BEF #A0EF3B
analogous
#3B46EF #8A3BEF #E43BEF
triadic
#8A3BEF #EF8A3B #3BEF8A
tetradic
#8A3BEF #EF3B46 #A0EF3B #3BEFE4
square
#8A3BEF #EF3B46 #A0EF3B #3BEFE4
split-complementary
#8A3BEF #EFE43B #46EF3B
monochromatic
#4F0DA2 #6A12DB #8A3BEF #AC74F4 #CEACF8

Accessibility & contrast

On white

5.31
#8A3BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8A3BEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BEF
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BEF#FFFFFF#000000##FFFFFF
##8A3BEF1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#706B93
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a3bef;
/* rgb */ color: rgb(138, 59, 239);
/* oklch */ color: oklch(55.9% 0.249 297.5);
Tailwind
colors: {
  custom: {
    50: '#b479f5',
    500: '#8a3bef',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bef;
$custom-light: #b479f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bef",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 239
  },
  "hsl": {
    "h": 266.333,
    "s": 84.906,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55881,
    "c": 0.24864,
    "h": 297.5
  },
  "luminance": 0.14763
}

Semantic roles & 50–950 ramp

primary
#8A3BEF
secondary
#C7E79F
accent
#FB2DA1
background
#FBF7FF
surface
#F7EEFF
border
#D0C9D7
text
#120A17
muted
#817C85

Preview Lab

Preview with #8A3BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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