#8F51DD#8F51DD

#8F51DD is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.205 H 300.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8F51DD
RGBrgb(143, 81, 221)
HSLhsl(267, 67%, 59%)
HSVhsv(267, 63%, 87%)
CMYKcmyk(35.3%, 63.3%, 0%, 13.3%)
CIE-LABlab(48.19, 53.29, -62.12)
CIE-LCHlch(48.19, 81.85, 310.62°)
OKLaboklab(57.64% 0.1038 -0.1766)
OKLCHoklch(57.64% 0.205 300.4)
XYZxyz(27.3181, 16.9448, 70.2240)
Luminance0.1694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51DD #9FDD51
analogous
#5159DD #8F51DD #D551DD
triadic
#8F51DD #DD8F51 #51DD8F
tetradic
#8F51DD #DD5159 #9FDD51 #51DDD5
square
#8F51DD #DD5159 #9FDD51 #51DDD5
split-complementary
#8F51DD #DDD551 #59DD51
monochromatic
#531D96 #6F27C9 #8F51DD #B084E7 #D1B7F1

Accessibility & contrast

On white

4.78
#8F51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8F51DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51DD
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51DD#FFFFFF#000000##FFFFFF
##8F51DD1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E1
Deuteranopia (green-blind)
#1471DA
Tritanopia (blue-blind)
#7E7090
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8f51dd;
/* rgb */ color: rgb(143, 81, 221);
/* oklch */ color: oklch(57.6% 0.205 300.4);
Tailwind
colors: {
  custom: {
    50: '#b585e8',
    500: '#8f51dd',
    950: '#000000',
  },
}
SCSS
$custom: #8f51dd;
$custom-light: #b585e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51dd",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 266.571,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57644,
    "c": 0.20484,
    "h": 300.4
  },
  "luminance": 0.16945
}

Semantic roles & 50–950 ramp

primary
#8F51DD
secondary
#C8E0AA
accent
#EA3E9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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