#9845DE#9845DE

#9845DE is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.2% C 0.223 H 305.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9845DE
RGBrgb(152, 69, 222)
HSLhsl(273, 70%, 57%)
HSVhsv(273, 69%, 87%)
CMYKcmyk(31.5%, 68.9%, 0%, 12.9%)
CIE-LABlab(47.24, 61.11, -64.17)
CIE-LCHlch(47.24, 88.62, 313.60°)
OKLaboklab(57.22% 0.1284 -0.1823)
OKLCHoklch(57.22% 0.223 305.2)
XYZxyz(28.2589, 16.2057, 70.7324)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9845DE #8BDE45
analogous
#4C45DE #9845DE #DE45D8
triadic
#9845DE #DE9845 #45DE98
tetradic
#9845DE #DE4C45 #8BDE45 #45D8DE
square
#9845DE #DE4C45 #8BDE45 #45D8DE
split-complementary
#9845DE #D8DE45 #45DE4C
monochromatic
#59198F #7A23C3 #9845DE #B579E7 #D2ADF0

Accessibility & contrast

On white

4.95
#9845DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9845DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9845DE
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9845DE#FFFFFF#000000##FFFFFF
##9845DE1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#0070DB
Tritanopia (blue-blind)
#8B688D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9845de;
/* rgb */ color: rgb(152, 69, 222);
/* oklch */ color: oklch(57.2% 0.223 305.2);
Tailwind
colors: {
  custom: {
    50: '#bc7fe9',
    500: '#9845de',
    950: '#000000',
  },
}
SCSS
$custom: #9845de;
$custom-light: #bc7fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#9845de",
  "rgb": {
    "r": 152,
    "g": 69,
    "b": 222
  },
  "hsl": {
    "h": 272.549,
    "s": 69.863,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57222,
    "c": 0.22295,
    "h": 305.2
  },
  "luminance": 0.16206
}

Semantic roles & 50–950 ramp

primary
#9845DE
secondary
#BDDFA0
accent
#ED3B8C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9845DE

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

Preview Lab → · Contrast checker → · Palette generator →

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