Blueviolet#8A2BE2

#8A2BE2 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.4% C 0.250 H 301.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Blueviolet — editorial page

Color values

HEX#8A2BE2
RGBrgb(138, 43, 226)
HSLhsl(271, 76%, 53%)
HSVhsv(271, 81%, 89%)
CMYKcmyk(38.9%, 81%, 0%, 11.4%)
CIE-LABlab(42.19, 69.84, -74.76)
CIE-LCHlch(42.19, 102.31, 313.05°)
OKLaboklab(53.38% 0.1303 -0.2137)
OKLCHoklch(53.38% 0.25 301.4)
XYZxyz(25.0692, 12.6219, 73.0523)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BE2 #83E22B
analogous
#2F2BE2 #8A2BE2 #E22BDE
triadic
#8A2BE2 #E28A2B #2BE28A
tetradic
#8A2BE2 #E22F2B #83E22B #2BDEE2
square
#8A2BE2 #E22F2B #83E22B #2BDEE2
split-complementary
#8A2BE2 #DEE22B #2BE22F
monochromatic
#4B1281 #6B19B7 #8A2BE2 #A861E9 #C597F1

Accessibility & contrast

On white

5.96
#8A2BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A2BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BE2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BE2#FFFFFF#000000##FFFFFF
##8A2BE21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0063DF
Tritanopia (blue-blind)
#765F89
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a2be2;
/* rgb */ color: rgb(138, 43, 226);
/* oklch */ color: oklch(53.4% 0.250 301.4);
Tailwind
colors: {
  custom: {
    50: '#b471ec',
    500: '#8a2be2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2be2;
$custom-light: #b471ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2be2",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 271.148,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53376,
    "c": 0.25031,
    "h": 301.4
  },
  "luminance": 0.12622
}

Semantic roles & 50–950 ramp

primary
#8A2BE2
secondary
#B3DC8D
accent
#F33590
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A2BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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