#8F45CD#8F45CD

#8F45CD is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.0% C 0.203 H 305.7°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8F45CD
RGBrgb(143, 69, 205)
HSLhsl(273, 58%, 54%)
HSVhsv(273, 66%, 80%)
CMYKcmyk(30.2%, 66.3%, 0%, 19.6%)
CIE-LABlab(44.95, 55.39, -58.21)
CIE-LCHlch(44.95, 80.35, 313.58°)
OKLaboklab(54.97% 0.1185 -0.165)
OKLCHoklch(54.97% 0.203 305.7)
XYZxyz(24.4729, 14.5039, 59.2560)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F45CD #83CD45
analogous
#4B45CD #8F45CD #CD45C7
triadic
#8F45CD #CD8F45 #45CD8F
tetradic
#8F45CD #CD4B45 #83CD45 #45C7CD
square
#8F45CD #CD4B45 #83CD45 #45C7CD
split-complementary
#8F45CD #C7CD45 #45CD4B
monochromatic
#502077 #702DA8 #8F45CD #AC75DA #C9A5E7

Accessibility & contrast

On white

5.38
#8F45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8F45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F45CD
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F45CD#FFFFFF#000000##FFFFFF
##8F45CD1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#1E6BCA
Tritanopia (blue-blind)
#846383
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f45cd;
/* rgb */ color: rgb(143, 69, 205);
/* oklch */ color: oklch(55.0% 0.203 305.7);
Tailwind
colors: {
  custom: {
    50: '#b47edd',
    500: '#8f45cd',
    950: '#000000',
  },
}
SCSS
$custom: #8f45cd;
$custom-light: #b47edd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f45cd",
  "rgb": {
    "r": 143,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 272.647,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54965,
    "c": 0.20318,
    "h": 305.7
  },
  "luminance": 0.14504
}

Semantic roles & 50–950 ramp

primary
#8F45CD
secondary
#B4D49A
accent
#E1478D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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