#9845EF#9845EF

#9845EF is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.240 H 301.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9845EF
RGBrgb(152, 69, 239)
HSLhsl(269, 84%, 60%)
HSVhsv(269, 71%, 94%)
CMYKcmyk(36.4%, 71.1%, 0%, 6.3%)
CIE-LABlab(48.47, 65.02, -71.80)
CIE-LCHlch(48.47, 96.87, 312.16°)
OKLaboklab(58.48% 0.1256 -0.2047)
OKLCHoklch(58.48% 0.24 301.5)
XYZxyz(30.6532, 17.1635, 83.3426)
Luminance0.1716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845EF #9CEF45
analogous
#4547EF #9845EF #ED45EF
triadic
#9845EF #EF9845 #45EF98
tetradic
#9845EF #EF4547 #9CEF45 #45EFED
square
#9845EF #EF4547 #9CEF45 #45EFED
split-complementary
#9845EF #EFED45 #47EF45
monochromatic
#5B0FAB #7914E3 #9845EF #B77DF4 #D6B6F9

Accessibility & contrast

On white

4.74
#9845EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9845EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845EF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845EF#FFFFFF#000000##FFFFFF
##9845EF1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#0072EC
Tritanopia (blue-blind)
#856F96
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9845ef;
/* rgb */ color: rgb(152, 69, 239);
/* oklch */ color: oklch(58.5% 0.240 301.5);
Tailwind
colors: {
  custom: {
    50: '#bd7ff5',
    500: '#9845ef',
    950: '#000000',
  },
}
SCSS
$custom: #9845ef;
$custom-light: #bd7ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#9845ef",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 239
  },
  "hsl": {
    "h": 269.294,
    "s": 84.158,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58475,
    "c": 0.2402,
    "h": 301.5
  },
  "luminance": 0.17164
}

Semantic roles & 50–950 ramp

primary
#9845EF
secondary
#C9E8A7
accent
#E10575
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130B17
muted
#827C85

Preview Lab

Preview with #9845EF

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

Preview Lab → · Contrast checker → · Palette generator →

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