#8F45E3#8F45E3

#8F45E3 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.226 H 300.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8F45E3
RGBrgb(143, 69, 227)
HSLhsl(268, 74%, 58%)
HSVhsv(268, 70%, 89%)
CMYKcmyk(37%, 69.6%, 0%, 11%)
CIE-LABlab(46.50, 60.57, -68.27)
CIE-LCHlch(46.50, 91.26, 311.58°)
OKLaboklab(56.57% 0.1156 -0.1946)
OKLCHoklch(56.57% 0.226 300.7)
XYZxyz(27.3175, 15.6417, 74.2381)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45E3 #99E345
analogous
#454AE3 #8F45E3 #DE45E3
triadic
#8F45E3 #E38F45 #45E38F
tetradic
#8F45E3 #E3454A #99E345 #45E3DE
square
#8F45E3 #E3454A #99E345 #45E3DE
split-complementary
#8F45E3 #E3DE45 #4AE345
monochromatic
#531797 #701FCC #8F45E3 #AF7AEB #CFAFF3

Accessibility & contrast

On white

5.09
#8F45E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8F45E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45E3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45E3#FFFFFF#000000##FFFFFF
##8F45E31.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#006DE0
Tritanopia (blue-blind)
#7C6B8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8f45e3;
/* rgb */ color: rgb(143, 69, 227);
/* oklch */ color: oklch(56.6% 0.226 300.7);
Tailwind
colors: {
  custom: {
    50: '#b67eed',
    500: '#8f45e3',
    950: '#000000',
  },
}
SCSS
$custom: #8f45e3;
$custom-light: #b67eed;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45e3",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 227
  },
  "hsl": {
    "h": 268.101,
    "s": 73.832,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56566,
    "c": 0.22636,
    "h": 300.7
  },
  "luminance": 0.15642
}

Semantic roles & 50–950 ramp

primary
#8F45E3
secondary
#C4E1A2
accent
#F0379A
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F45E3

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

Preview Lab → · Contrast checker → · Palette generator →

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