#9843EA#9843EA

#9843EA is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.9% C 0.237 H 302.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9843EA
RGBrgb(152, 67, 234)
HSLhsl(271, 80%, 59%)
HSVhsv(271, 71%, 92%)
CMYKcmyk(35%, 71.4%, 0%, 8.2%)
CIE-LABlab(47.79, 64.73, -70.08)
CIE-LCHlch(47.79, 95.40, 312.73°)
OKLaboklab(57.88% 0.1284 -0.1997)
OKLCHoklch(57.88% 0.237 302.7)
XYZxyz(29.8038, 16.6302, 79.4657)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9843EA #95EA43
analogous
#4543EA #9843EA #EA43E8
triadic
#9843EA #EA9843 #43EA98
tetradic
#9843EA #EA4543 #95EA43 #43E8EA
square
#9843EA #EA4543 #95EA43 #43E8EA
split-complementary
#9843EA #E8EA43 #43EA45
monochromatic
#5B12A1 #7A18D8 #9843EA #B67AF0 #D4B1F6

Accessibility & contrast

On white

4.85
#9843EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9843EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9843EA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9843EA#FFFFFF#000000##FFFFFF
##9843EA1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#876C93
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9843ea;
/* rgb */ color: rgb(152, 67, 234);
/* oklch */ color: oklch(57.9% 0.237 302.7);
Tailwind
colors: {
  custom: {
    50: '#bd7ef2',
    500: '#9843ea',
    950: '#000000',
  },
}
SCSS
$custom: #9843ea;
$custom-light: #bd7ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9843ea",
  "rgb": {
    "r": 152,
    "g": 67,
    "b": 234
  },
  "hsl": {
    "h": 270.539,
    "s": 79.904,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57881,
    "c": 0.23738,
    "h": 302.7
  },
  "luminance": 0.1663
}

Semantic roles & 50–950 ramp

primary
#9843EA
secondary
#C4E5A4
accent
#F63192
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A17
muted
#827C85

Preview Lab

Preview with #9843EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9843EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva