#9851F2#9851F2

#9851F2 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 60.1% C 0.229 H 299.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9851F2
RGBrgb(152, 81, 242)
HSLhsl(266, 86%, 63%)
HSVhsv(266, 67%, 95%)
CMYKcmyk(37.2%, 66.5%, 0%, 5.1%)
CIE-LABlab(50.65, 60.23, -69.93)
CIE-LCHlch(50.65, 92.29, 310.74°)
OKLaboklab(60.1% 0.1135 -0.1993)
OKLCHoklch(60.1% 0.229 299.7)
XYZxyz(31.9144, 18.9707, 85.9675)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851F2 #ABF251
analogous
#515AF2 #9851F2 #E951F2
triadic
#9851F2 #F29851 #51F298
tetradic
#9851F2 #F2515A #ABF251 #51F2E9
square
#9851F2 #F2515A #ABF251 #51F2E9
split-complementary
#9851F2 #F2E951 #5AF251
monochromatic
#5A0EBB #7618EE #9851F2 #BA8AF6 #DBC3FB

Accessibility & contrast

On white

4.38
#9851F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9851F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9851F2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851F2#FFFFFF#000000##000000
##9851F21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F7
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#84779B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9851f2;
/* rgb */ color: rgb(152, 81, 242);
/* oklch */ color: oklch(60.1% 0.229 299.7);
Tailwind
colors: {
  custom: {
    50: '#bc86f7',
    500: '#9851f2',
    950: '#000000',
  },
}
SCSS
$custom: #9851f2;
$custom-light: #bc86f7;
$custom-dark: #000000;
JSON
{
  "hex": "#9851f2",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 266.46,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60101,
    "c": 0.22933,
    "h": 299.7
  },
  "luminance": 0.18971
}

Semantic roles & 50–950 ramp

primary
#9851F2
secondary
#D3ECB3
accent
#E30380
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130B17
muted
#827C85

Preview Lab

Preview with #9851F2

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

Preview Lab → · Contrast checker → · Palette generator →

#9851F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva