#8B45D2#8B45D2

#8B45D2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.208 H 302.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8B45D2
RGBrgb(139, 69, 210)
HSLhsl(270, 61%, 55%)
HSVhsv(270, 67%, 82%)
CMYKcmyk(33.8%, 67.1%, 0%, 17.6%)
CIE-LABlab(44.80, 55.74, -61.35)
CIE-LCHlch(44.80, 82.89, 312.26°)
OKLaboklab(54.86% 0.1126 -0.1744)
OKLCHoklch(54.86% 0.208 302.8)
XYZxyz(24.4057, 14.3983, 62.4537)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B45D2 #8CD245
analogous
#4546D2 #8B45D2 #D145D2
triadic
#8B45D2 #D28B45 #45D28B
tetradic
#8B45D2 #D24546 #8CD245 #45D2D1
square
#8B45D2 #D24546 #8CD245 #45D2D1
split-complementary
#8B45D2 #D2D145 #46D245
monochromatic
#4E1F7E #6C2AAF #8B45D2 #AA76DE #C8A8EA

Accessibility & contrast

On white

5.41
#8B45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8B45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B45D2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B45D2#FFFFFF#000000##FFFFFF
##8B45D21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#006ACF
Tritanopia (blue-blind)
#7D6586
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b45d2;
/* rgb */ color: rgb(139, 69, 210);
/* oklch */ color: oklch(54.9% 0.208 302.8);
Tailwind
colors: {
  custom: {
    50: '#b27de1',
    500: '#8b45d2',
    950: '#000000',
  },
}
SCSS
$custom: #8b45d2;
$custom-light: #b27de1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b45d2",
  "rgb": {
    "r": 139,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 269.787,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5486,
    "c": 0.20761,
    "h": 302.8
  },
  "luminance": 0.14398
}

Semantic roles & 50–950 ramp

primary
#8B45D2
secondary
#BAD79C
accent
#E44494
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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