#8B45CC#8B45CC

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

Color values

HEX#8B45CC
RGBrgb(139, 69, 204)
HSLhsl(271, 57%, 54%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(31.9%, 66.2%, 0%, 20%)
CIE-LABlab(44.38, 54.31, -58.57)
CIE-LCHlch(44.38, 79.87, 312.84°)
OKLaboklab(54.43% 0.1133 -0.1662)
OKLCHoklch(54.43% 0.201 304.3)
XYZxyz(23.6722, 14.1049, 58.5905)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45CC #86CC45
analogous
#4745CC #8B45CC #CC45C9
triadic
#8B45CC #CC8B45 #45CC8B
tetradic
#8B45CC #CC4745 #86CC45 #45C9CC
square
#8B45CC #CC4745 #86CC45 #45C9CC
split-complementary
#8B45CC #C9CC45 #45CC47
monochromatic
#4D2076 #6C2EA6 #8B45CC #A975D9 #C7A5E6

Accessibility & contrast

On white

5.50
#8B45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8B45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B45CC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B45CC#FFFFFF#000000##FFFFFF
##8B45CC1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#1769C9
Tritanopia (blue-blind)
#7F6383
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b45cc;
/* rgb */ color: rgb(139, 69, 204);
/* oklch */ color: oklch(54.4% 0.201 304.3);
Tailwind
colors: {
  custom: {
    50: '#b27ddc',
    500: '#8b45cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b45cc;
$custom-light: #b27ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45cc",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 271.111,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5443,
    "c": 0.20117,
    "h": 304.3
  },
  "luminance": 0.14105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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