#9849E2#9849E2

#9849E2 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.0% C 0.222 H 303.8°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9849E2
RGBrgb(152, 73, 226)
HSLhsl(271, 73%, 59%)
HSVhsv(271, 68%, 89%)
CMYKcmyk(32.7%, 67.7%, 0%, 11.4%)
CIE-LABlab(48.17, 60.21, -64.94)
CIE-LCHlch(48.17, 88.56, 312.84°)
OKLaboklab(57.97% 0.1238 -0.1846)
OKLCHoklch(57.97% 0.222 303.8)
XYZxyz(29.0558, 16.9315, 73.6741)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9849E2 #93E249
analogous
#4B49E2 #9849E2 #E249E0
triadic
#9849E2 #E29849 #49E298
tetradic
#9849E2 #E24B49 #93E249 #49E0E2
square
#9849E2 #E24B49 #93E249 #49E0E2
split-complementary
#9849E2 #E0E249 #49E24B
monochromatic
#5A1898 #7A21CD #9849E2 #B67EEA #D4B3F3

Accessibility & contrast

On white

4.79
#9849E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#9849E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9849E2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9849E2#FFFFFF#000000##FFFFFF
##9849E21.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#8A6C90
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9849e2;
/* rgb */ color: rgb(152, 73, 226);
/* oklch */ color: oklch(58.0% 0.222 303.8);
Tailwind
colors: {
  custom: {
    50: '#bc81ec',
    500: '#9849e2',
    950: '#000000',
  },
}
SCSS
$custom: #9849e2;
$custom-light: #bc81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9849e2",
  "rgb": {
    "r": 152,
    "g": 73,
    "b": 226
  },
  "hsl": {
    "h": 270.98,
    "s": 72.512,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57974,
    "c": 0.22221,
    "h": 303.8
  },
  "luminance": 0.16931
}

Semantic roles & 50–950 ramp

primary
#9849E2
secondary
#C2E2A5
accent
#EF3991
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9849E2

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

Preview Lab → · Contrast checker → · Palette generator →

#9849E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva