#8F45D4#8F45D4

#8F45D4 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.211 H 304.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8F45D4
RGBrgb(143, 69, 212)
HSLhsl(271, 62%, 55%)
HSVhsv(271, 67%, 83%)
CMYKcmyk(32.5%, 67.5%, 0%, 16.9%)
CIE-LABlab(45.43, 57.02, -61.46)
CIE-LCHlch(45.43, 83.83, 312.86°)
OKLaboklab(55.46% 0.1177 -0.1746)
OKLCHoklch(55.46% 0.211 304)
XYZxyz(25.3368, 14.8494, 63.8060)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45D4 #8AD445
analogous
#4845D4 #8F45D4 #D445D1
triadic
#8F45D4 #D48F45 #45D48F
tetradic
#8F45D4 #D44845 #8AD445 #45D1D4
square
#8F45D4 #D44845 #8AD445 #45D1D4
split-complementary
#8F45D4 #D1D445 #45D448
monochromatic
#511E81 #7029B3 #8F45D4 #AD77DF #CBA8EB

Accessibility & contrast

On white

5.29
#8F45D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8F45D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45D4
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45D4#FFFFFF#000000##FFFFFF
##8F45D41.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#076BD1
Tritanopia (blue-blind)
#826587
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f45d4;
/* rgb */ color: rgb(143, 69, 212);
/* oklch */ color: oklch(55.5% 0.211 304.0);
Tailwind
colors: {
  custom: {
    50: '#b57ee2',
    500: '#8f45d4',
    950: '#000000',
  },
}
SCSS
$custom: #8f45d4;
$custom-light: #b57ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45d4",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 271.049,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55461,
    "c": 0.21058,
    "h": 304
  },
  "luminance": 0.14849
}

Semantic roles & 50–950 ramp

primary
#8F45D4
secondary
#B9D89C
accent
#E64291
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8F45D4

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

Preview Lab → · Contrast checker → · Palette generator →

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