#8E4FBB#8E4FBB

#8E4FBB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.0% C 0.169 H 308.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8E4FBB
RGBrgb(142, 79, 187)
HSLhsl(275, 44%, 52%)
HSVhsv(275, 58%, 73%)
CMYKcmyk(24.1%, 57.8%, 0%, 26.7%)
CIE-LABlab(45.54, 45.96, -46.83)
CIE-LCHlch(45.54, 65.61, 314.46°)
OKLaboklab(55% 0.1059 -0.1317)
OKLCHoklch(55% 0.169 308.8)
XYZxyz(22.9192, 14.9310, 48.6787)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4FBB #7CBB4F
analogous
#584FBB #8E4FBB #BB4FB2
triadic
#8E4FBB #BB8E4F #4FBB8E
tetradic
#8E4FBB #BB584F #7CBB4F #4FB2BB
square
#8E4FBB #BB584F #7CBB4F #4FB2BB
split-complementary
#8E4FBB #B2BB4F #4FBB58
monochromatic
#4D2868 #6E3994 #8E4FBB #AA7BCC #C7A7DD

Accessibility & contrast

On white

5.27
#8E4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8E4FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4FBB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4FBB#FFFFFF#000000##FFFFFF
##8E4FBB1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BF
Deuteranopia (green-blind)
#416DB8
Tritanopia (blue-blind)
#88637D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e4fbb;
/* rgb */ color: rgb(142, 79, 187);
/* oklch */ color: oklch(55.0% 0.169 308.8);
Tailwind
colors: {
  custom: {
    50: '#b283d0',
    500: '#8e4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #8e4fbb;
$custom-light: #b283d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4fbb",
  "rgb": {
    "r": 142,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 275,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55004,
    "c": 0.16903,
    "h": 308.8
  },
  "luminance": 0.14931
}

Semantic roles & 50–950 ramp

primary
#8E4FBB
secondary
#AFCA9B
accent
#D45489
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8E4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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