#8B45CD#8B45CD

#8B45CD is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.5% C 0.202 H 304.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8B45CD
RGBrgb(139, 69, 205)
HSLhsl(271, 58%, 54%)
HSVhsv(271, 66%, 80%)
CMYKcmyk(32.2%, 66.3%, 0%, 19.6%)
CIE-LABlab(44.45, 54.55, -59.03)
CIE-LCHlch(44.45, 80.38, 312.74°)
OKLaboklab(54.5% 0.1132 -0.1676)
OKLCHoklch(54.5% 0.202 304)
XYZxyz(23.7925, 14.1531, 59.2241)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45CD #87CD45
analogous
#4745CD #8B45CD #CD45CB
triadic
#8B45CD #CD8B45 #45CD8B
tetradic
#8B45CD #CD4745 #87CD45 #45CBCD
square
#8B45CD #CD4745 #87CD45 #45CBCD
split-complementary
#8B45CD #CBCD45 #45CD47
monochromatic
#4D2077 #6C2DA8 #8B45CD #A975DA #C7A5E7

Accessibility & contrast

On white

5.48
#8B45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8B45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B45CD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B45CD#FFFFFF#000000##FFFFFF
##8B45CD1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1469CA
Tritanopia (blue-blind)
#7F6383
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b45cd;
/* rgb */ color: rgb(139, 69, 205);
/* oklch */ color: oklch(54.5% 0.202 304.0);
Tailwind
colors: {
  custom: {
    50: '#b27ddd',
    500: '#8b45cd',
    950: '#000000',
  },
}
SCSS
$custom: #8b45cd;
$custom-light: #b27ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45cd",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 270.882,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54501,
    "c": 0.20224,
    "h": 304
  },
  "luminance": 0.14153
}

Semantic roles & 50–950 ramp

primary
#8B45CD
secondary
#B6D49A
accent
#E14792
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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