#9845E0#9845E0

#9845E0 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.4% C 0.225 H 304.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9845E0
RGBrgb(152, 69, 224)
HSLhsl(272, 71%, 57%)
HSVhsv(272, 69%, 88%)
CMYKcmyk(32.1%, 69.2%, 0%, 12.2%)
CIE-LABlab(47.38, 61.57, -65.08)
CIE-LCHlch(47.38, 89.59, 313.41°)
OKLaboklab(57.37% 0.1281 -0.185)
OKLCHoklch(57.37% 0.225 304.7)
XYZxyz(28.5285, 16.3136, 72.1525)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845E0 #8DE045
analogous
#4A45E0 #9845E0 #E045DB
triadic
#9845E0 #E09845 #45E098
tetradic
#9845E0 #E04A45 #8DE045 #45DBE0
square
#9845E0 #E04A45 #8DE045 #45DBE0
split-complementary
#9845E0 #DBE045 #45E04A
monochromatic
#5A1892 #7A21C7 #9845E0 #B579E9 #D2AEF1

Accessibility & contrast

On white

4.93
#9845E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#9845E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845E0
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845E0#FFFFFF#000000##FFFFFF
##9845E01.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE5
Deuteranopia (green-blind)
#0070DD
Tritanopia (blue-blind)
#8B698E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9845e0;
/* rgb */ color: rgb(152, 69, 224);
/* oklch */ color: oklch(57.4% 0.225 304.7);
Tailwind
colors: {
  custom: {
    50: '#bc7feb',
    500: '#9845e0',
    950: '#000000',
  },
}
SCSS
$custom: #9845e0;
$custom-light: #bc7feb;
$custom-dark: #000000;
JSON
{
  "hex": "#9845e0",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 224
  },
  "hsl": {
    "h": 272.129,
    "s": 71.429,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57366,
    "c": 0.22499,
    "h": 304.7
  },
  "luminance": 0.16313
}

Semantic roles & 50–950 ramp

primary
#9845E0
secondary
#BEE0A1
accent
#EE3A8D
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9845E0

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

Preview Lab → · Contrast checker → · Palette generator →

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