#8F45CA#8F45CA

#8F45CA is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.8% C 0.200 H 306.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8F45CA
RGBrgb(143, 69, 202)
HSLhsl(273, 56%, 53%)
HSVhsv(273, 66%, 79%)
CMYKcmyk(29.2%, 65.8%, 0%, 20.8%)
CIE-LABlab(44.75, 54.70, -56.80)
CIE-LCHlch(44.75, 78.85, 313.92°)
OKLaboklab(54.76% 0.1188 -0.1609)
OKLCHoklch(54.76% 0.2 306.4)
XYZxyz(24.1142, 14.3604, 57.3671)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45CA #80CA45
analogous
#4C45CA #8F45CA #CA45C3
triadic
#8F45CA #CA8F45 #45CA8F
tetradic
#8F45CA #CA4C45 #80CA45 #45C3CA
square
#8F45CA #CA4C45 #80CA45 #45C3CA
split-complementary
#8F45CA #C3CA45 #45CA4C
monochromatic
#4F2174 #6F2FA3 #8F45CA #AC75D8 #C8A4E5

Accessibility & contrast

On white

5.42
#8F45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8F45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45CA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45CA#FFFFFF#000000##FFFFFF
##8F45CA1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#246AC7
Tritanopia (blue-blind)
#856282
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f45ca;
/* rgb */ color: rgb(143, 69, 202);
/* oklch */ color: oklch(54.8% 0.200 306.4);
Tailwind
colors: {
  custom: {
    50: '#b47ddb',
    500: '#8f45ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f45ca;
$custom-light: #b47ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45ca",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 273.383,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54756,
    "c": 0.20001,
    "h": 306.4
  },
  "luminance": 0.1436
}

Semantic roles & 50–950 ramp

primary
#8F45CA
secondary
#B2D299
accent
#DF498B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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