#8A3BE2#8A3BE2

#8A3BE2 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.8% C 0.236 H 300.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8A3BE2
RGBrgb(138, 59, 226)
HSLhsl(268, 74%, 56%)
HSVhsv(268, 74%, 89%)
CMYKcmyk(38.9%, 73.9%, 0%, 11.4%)
CIE-LABlab(44.26, 63.85, -71.37)
CIE-LCHlch(44.26, 95.76, 311.82°)
OKLaboklab(54.83% 0.1181 -0.2039)
OKLCHoklch(54.83% 0.236 300.1)
XYZxyz(25.7692, 14.0219, 73.2856)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BE2 #93E23B
analogous
#3B3FE2 #8A3BE2 #DD3BE2
triadic
#8A3BE2 #E28A3B #3BE28A
tetradic
#8A3BE2 #E23B3F #93E23B #3BE2DD
square
#8A3BE2 #E23B3F #93E23B #3BE2DD
split-complementary
#8A3BE2 #E2DD3B #3FE23B
monochromatic
#4E158E #6B1DC3 #8A3BE2 #AA70EA #CAA6F2

Accessibility & contrast

On white

5.52
#8A3BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A3BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BE2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BE2#FFFFFF#000000##FFFFFF
##8A3BE21.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0067DF
Tritanopia (blue-blind)
#76668C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a3be2;
/* rgb */ color: rgb(138, 59, 226);
/* oklch */ color: oklch(54.8% 0.236 300.1);
Tailwind
colors: {
  custom: {
    50: '#b378ec',
    500: '#8a3be2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3be2;
$custom-light: #b378ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3be2",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 226
  },
  "hsl": {
    "h": 268.383,
    "s": 74.222,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54827,
    "c": 0.23559,
    "h": 300.1
  },
  "luminance": 0.14022
}

Semantic roles & 50–950 ramp

primary
#8A3BE2
secondary
#BEDF9A
accent
#F13799
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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