#8B45CB#8B45CB

#8B45CB is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.4% C 0.200 H 304.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8B45CB
RGBrgb(139, 69, 203)
HSLhsl(271, 56%, 53%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(31.5%, 66%, 0%, 20.4%)
CIE-LABlab(44.31, 54.08, -58.10)
CIE-LCHlch(44.31, 79.37, 312.95°)
OKLaboklab(54.36% 0.1134 -0.1649)
OKLCHoklch(54.36% 0.2 304.5)
XYZxyz(23.5527, 14.0571, 57.9608)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45CB #85CB45
analogous
#4845CB #8B45CB #CB45C8
triadic
#8B45CB #CB8B45 #45CB8B
tetradic
#8B45CB #CB4845 #85CB45 #45C8CB
square
#8B45CB #CB4845 #85CB45 #45C8CB
split-complementary
#8B45CB #C8CB45 #45CB48
monochromatic
#4D2175 #6C2EA5 #8B45CB #A975D8 #C7A5E6

Accessibility & contrast

On white

5.51
#8B45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8B45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B45CB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B45CB#FFFFFF#000000##FFFFFF
##8B45CB1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#1969C8
Tritanopia (blue-blind)
#7F6282
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b45cb;
/* rgb */ color: rgb(139, 69, 203);
/* oklch */ color: oklch(54.4% 0.200 304.5);
Tailwind
colors: {
  custom: {
    50: '#b17ddc',
    500: '#8b45cb',
    950: '#000000',
  },
}
SCSS
$custom: #8b45cb;
$custom-light: #b17ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45cb",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 271.343,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5436,
    "c": 0.20009,
    "h": 304.5
  },
  "luminance": 0.14057
}

Semantic roles & 50–950 ramp

primary
#8B45CB
secondary
#B5D399
accent
#E04891
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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