#8F45E6#8F45E6

#8F45E6 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.230 H 300.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8F45E6
RGBrgb(143, 69, 230)
HSLhsl(268, 76%, 59%)
HSVhsv(268, 70%, 90%)
CMYKcmyk(37.8%, 70%, 0%, 9.8%)
CIE-LABlab(46.72, 61.28, -69.61)
CIE-LCHlch(46.72, 92.74, 311.36°)
OKLaboklab(56.79% 0.1151 -0.1986)
OKLCHoklch(56.79% 0.23 300.1)
XYZxyz(27.7352, 15.8088, 76.4378)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45E6 #9CE645
analogous
#454BE6 #8F45E6 #E045E6
triadic
#8F45E6 #E68F45 #45E68F
tetradic
#8F45E6 #E6454B #9CE645 #45E6E0
square
#8F45E6 #E6454B #9CE645 #45E6E0
split-complementary
#8F45E6 #E6E045 #4BE645
monochromatic
#53159C #701CD2 #8F45E6 #AF7BED #D0B1F5

Accessibility & contrast

On white

5.05
#8F45E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8F45E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45E6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45E6#FFFFFF#000000##FFFFFF
##8F45E61.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEB
Deuteranopia (green-blind)
#006EE3
Tritanopia (blue-blind)
#7B6C91
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8f45e6;
/* rgb */ color: rgb(143, 69, 230);
/* oklch */ color: oklch(56.8% 0.230 300.1);
Tailwind
colors: {
  custom: {
    50: '#b67eef',
    500: '#8f45e6',
    950: '#000000',
  },
}
SCSS
$custom: #8f45e6;
$custom-light: #b67eef;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45e6",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 230
  },
  "hsl": {
    "h": 267.578,
    "s": 76.303,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56793,
    "c": 0.2295,
    "h": 300.1
  },
  "luminance": 0.15809
}

Semantic roles & 50–950 ramp

primary
#8F45E6
secondary
#C6E3A4
accent
#F3359C
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8F45E6

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

Preview Lab → · Contrast checker → · Palette generator →

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