#9852F4#9852F4

#9852F4 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.4% C 0.230 H 299.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9852F4
RGBrgb(152, 82, 244)
HSLhsl(266, 88%, 64%)
HSVhsv(266, 66%, 96%)
CMYKcmyk(37.7%, 66.4%, 0%, 4.3%)
CIE-LABlab(50.97, 60.23, -70.54)
CIE-LCHlch(50.97, 92.76, 310.49°)
OKLaboklab(60.37% 0.1122 -0.2011)
OKLCHoklch(60.37% 0.23 299.2)
XYZxyz(32.2912, 19.2413, 87.5831)
Luminance0.1924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852F4 #AEF452
analogous
#525DF4 #9852F4 #E952F4
triadic
#9852F4 #F49852 #52F498
tetradic
#9852F4 #F4525D #AEF452 #52F4E9
square
#9852F4 #F4525D #AEF452 #52F4E9
split-complementary
#9852F4 #F4E952 #5DF452
monochromatic
#5A0CBF #7618F0 #9852F4 #BA8CF8 #DDC5FB

Accessibility & contrast

On white

4.33
#9852F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#9852F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852F4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852F4#FFFFFF#000000##000000
##9852F41.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F9
Deuteranopia (green-blind)
#0078F1
Tritanopia (blue-blind)
#83789C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9852f4;
/* rgb */ color: rgb(152, 82, 244);
/* oklch */ color: oklch(60.4% 0.230 299.2);
Tailwind
colors: {
  custom: {
    50: '#bd87f9',
    500: '#9852f4',
    950: '#000000',
  },
}
SCSS
$custom: #9852f4;
$custom-light: #bd87f9;
$custom-dark: #000000;
JSON
{
  "hex": "#9852f4",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 244
  },
  "hsl": {
    "h": 265.926,
    "s": 88.043,
    "l": 63.922
  },
  "oklch": {
    "l": 0.60372,
    "c": 0.23026,
    "h": 299.2
  },
  "luminance": 0.19242
}

Semantic roles & 50–950 ramp

primary
#9852F4
secondary
#D5EDB4
accent
#E50182
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9852F4

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

Preview Lab → · Contrast checker → · Palette generator →

#9852F4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva