#9845F3#9845F3

#9845F3 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.8% C 0.244 H 300.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9845F3
RGBrgb(152, 69, 243)
HSLhsl(269, 88%, 61%)
HSVhsv(269, 72%, 95%)
CMYKcmyk(37.4%, 71.6%, 0%, 4.7%)
CIE-LABlab(48.76, 65.95, -73.56)
CIE-LCHlch(48.76, 98.80, 311.88°)
OKLaboklab(58.78% 0.1249 -0.2099)
OKLCHoklch(58.78% 0.244 300.8)
XYZxyz(31.2507, 17.4025, 86.4892)
Luminance0.1740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845F3 #A0F345
analogous
#4549F3 #9845F3 #EF45F3
triadic
#9845F3 #F39845 #45F398
tetradic
#9845F3 #F34549 #A0F345 #45F3EF
square
#9845F3 #F34549 #A0F345 #45F3EF
split-complementary
#9845F3 #F3EF45 #49F345
monochromatic
#5B0BB2 #780FEC #9845F3 #B87EF7 #D8B8FA

Accessibility & contrast

On white

4.69
#9845F3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#9845F3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845F3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845F3#FFFFFF#000000##FFFFFF
##9845F31.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F8
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#847098
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9845f3;
/* rgb */ color: rgb(152, 69, 243);
/* oklch */ color: oklch(58.8% 0.244 300.8);
Tailwind
colors: {
  custom: {
    50: '#bd80f8',
    500: '#9845f3',
    950: '#000000',
  },
}
SCSS
$custom: #9845f3;
$custom-light: #bd80f8;
$custom-dark: #000000;
JSON
{
  "hex": "#9845f3",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 243
  },
  "hsl": {
    "h": 268.621,
    "s": 87.879,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58778,
    "c": 0.24424,
    "h": 300.8
  },
  "luminance": 0.17403
}

Semantic roles & 50–950 ramp

primary
#9845F3
secondary
#CBEBA9
accent
#E40178
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130B17
muted
#827C85

Preview Lab

Preview with #9845F3

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

Preview Lab → · Contrast checker → · Palette generator →

#9845F3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva