#8F45D2#8F45D2

#8F45D2 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.3% C 0.208 H 304.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8F45D2
RGBrgb(143, 69, 210)
HSLhsl(271, 61%, 55%)
HSVhsv(271, 67%, 82%)
CMYKcmyk(31.9%, 67.1%, 0%, 17.6%)
CIE-LABlab(45.29, 56.55, -60.53)
CIE-LCHlch(45.29, 82.84, 313.05°)
OKLaboklab(55.32% 0.118 -0.1719)
OKLCHoklch(55.32% 0.208 304.5)
XYZxyz(25.0861, 14.7491, 62.4856)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45D2 #88D245
analogous
#4845D2 #8F45D2 #D245CF
triadic
#8F45D2 #D28F45 #45D28F
tetradic
#8F45D2 #D24845 #88D245 #45CFD2
square
#8F45D2 #D24845 #88D245 #45CFD2
split-complementary
#8F45D2 #CFD245 #45D248
monochromatic
#511F7E #702AAF #8F45D2 #AD76DE #CAA8EA

Accessibility & contrast

On white

5.32
#8F45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8F45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45D2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45D2#FFFFFF#000000##FFFFFF
##8F45D21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#106BCF
Tritanopia (blue-blind)
#826586
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f45d2;
/* rgb */ color: rgb(143, 69, 210);
/* oklch */ color: oklch(55.3% 0.208 304.5);
Tailwind
colors: {
  custom: {
    50: '#b57ee1',
    500: '#8f45d2',
    950: '#000000',
  },
}
SCSS
$custom: #8f45d2;
$custom-light: #b57ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45d2",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 271.489,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55318,
    "c": 0.20847,
    "h": 304.5
  },
  "luminance": 0.14749
}

Semantic roles & 50–950 ramp

primary
#8F45D2
secondary
#B8D79C
accent
#E44490
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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