#8B45E8#8B45E8

#8B45E8 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.5% C 0.231 H 298.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8B45E8
RGBrgb(139, 69, 232)
HSLhsl(266, 78%, 59%)
HSVhsv(266, 70%, 91%)
CMYKcmyk(40.1%, 70.3%, 0%, 9%)
CIE-LABlab(46.41, 61.05, -71.28)
CIE-LCHlch(46.41, 93.85, 310.58°)
OKLaboklab(56.51% 0.1093 -0.2036)
OKLCHoklch(56.51% 0.231 298.2)
XYZxyz(27.3373, 15.5710, 77.8935)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45E8 #A2E845
analogous
#4551E8 #8B45E8 #DD45E8
triadic
#8B45E8 #E88B45 #45E88B
tetradic
#8B45E8 #E84551 #A2E845 #45E8DD
square
#8B45E8 #E84551 #A2E845 #45E8DD
split-complementary
#8B45E8 #E8DD45 #51E845
monochromatic
#4F149F #6B1AD5 #8B45E8 #AD7BEF #CFB2F5

Accessibility & contrast

On white

5.10
#8B45E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8B45E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B45E8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B45E8#FFFFFF#000000##FFFFFF
##8B45E81.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#746D92
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8b45e8;
/* rgb */ color: rgb(139, 69, 232);
/* oklch */ color: oklch(56.5% 0.231 298.2);
Tailwind
colors: {
  custom: {
    50: '#b47ef0',
    500: '#8b45e8',
    950: '#000000',
  },
}
SCSS
$custom: #8b45e8;
$custom-light: #b47ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45e8",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 265.767,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56512,
    "c": 0.23106,
    "h": 298.2
  },
  "luminance": 0.15571
}

Semantic roles & 50–950 ramp

primary
#8B45E8
secondary
#C9E4A4
accent
#F433A2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8B45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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