#8B45E0#8B45E0

#8B45E0 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.223 H 299.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8B45E0
RGBrgb(139, 69, 224)
HSLhsl(267, 71%, 57%)
HSVhsv(267, 69%, 88%)
CMYKcmyk(37.9%, 69.2%, 0%, 12.2%)
CIE-LABlab(45.81, 59.10, -67.71)
CIE-LCHlch(45.81, 89.88, 311.12°)
OKLaboklab(55.9% 0.1106 -0.1931)
OKLCHoklch(55.9% 0.223 299.8)
XYZxyz(26.2268, 15.1268, 72.0446)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45E0 #9AE045
analogous
#454CE0 #8B45E0 #D945E0
triadic
#8B45E0 #E08B45 #45E08B
tetradic
#8B45E0 #E0454C #9AE045 #45E0D9
square
#8B45E0 #E0454C #9AE045 #45E0D9
split-complementary
#8B45E0 #E0D945 #4CE045
monochromatic
#4F1892 #6C21C7 #8B45E0 #AC79E9 #CCAEF1

Accessibility & contrast

On white

5.22
#8B45E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8B45E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B45E0
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B45E0#FFFFFF#000000##FFFFFF
##8B45E01.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE5
Deuteranopia (green-blind)
#006BDD
Tritanopia (blue-blind)
#786A8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8b45e0;
/* rgb */ color: rgb(139, 69, 224);
/* oklch */ color: oklch(55.9% 0.223 299.8);
Tailwind
colors: {
  custom: {
    50: '#b37eeb',
    500: '#8b45e0',
    950: '#000000',
  },
}
SCSS
$custom: #8b45e0;
$custom-light: #b37eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45e0",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 224
  },
  "hsl": {
    "h": 267.097,
    "s": 71.429,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55898,
    "c": 0.22258,
    "h": 299.8
  },
  "luminance": 0.15127
}

Semantic roles & 50–950 ramp

primary
#8B45E0
secondary
#C3E0A1
accent
#EE3A9D
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B45E0

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

Preview Lab → · Contrast checker → · Palette generator →

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