#8F2ED7#8F2ED7

#8F2ED7 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.3% C 0.239 H 305.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8F2ED7
RGBrgb(143, 46, 215)
HSLhsl(274, 68%, 51%)
HSVhsv(274, 79%, 84%)
CMYKcmyk(33.5%, 78.6%, 0%, 15.7%)
CIE-LABlab(42.31, 67.17, -68.25)
CIE-LCHlch(42.31, 95.76, 314.55°)
OKLaboklab(53.33% 0.1382 -0.1944)
OKLCHoklch(53.33% 0.239 305.4)
XYZxyz(24.5677, 12.7001, 65.4339)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2ED7 #76D72E
analogous
#3A2ED7 #8F2ED7 #D72ECA
triadic
#8F2ED7 #D78F2E #2ED78F
tetradic
#8F2ED7 #D73A2E #76D72E #2ECAD7
square
#8F2ED7 #D73A2E #76D72E #2ECAD7
split-complementary
#8F2ED7 #CAD72E #2ED73A
monochromatic
#4C1674 #6E20A8 #8F2ED7 #AB61E1 #C695EB

Accessibility & contrast

On white

5.93
#8F2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8F2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2ED7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2ED7#FFFFFF#000000##FFFFFF
##8F2ED71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0064D4
Tritanopia (blue-blind)
#815B83
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8f2ed7;
/* rgb */ color: rgb(143, 46, 215);
/* oklch */ color: oklch(53.3% 0.239 305.4);
Tailwind
colors: {
  custom: {
    50: '#b672e4',
    500: '#8f2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ed7;
$custom-light: #b672e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ed7",
  "rgb": {
    "r": 143,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 274.438,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53325,
    "c": 0.23855,
    "h": 305.4
  },
  "luminance": 0.127
}

Semantic roles & 50–950 ramp

primary
#8F2ED7
secondary
#ABD68B
accent
#EB3D87
background
#FBF7FE
surface
#F7EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8F2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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