#9840FF#9840FF

#9840FF is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 59.2% C 0.261 H 299.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#9840FF
RGBrgb(152, 64, 255)
HSLhsl(268, 100%, 63%)
HSVhsv(268, 75%, 100%)
CMYKcmyk(40.4%, 74.9%, 0%, 0%)
CIE-LABlab(48.96, 70.81, -79.94)
CIE-LCHlch(48.96, 106.79, 311.53°)
OKLaboklab(59.21% 0.1265 -0.2286)
OKLCHoklch(59.21% 0.261 299)
XYZxyz(32.8277, 17.5617, 96.2486)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9840FF #A7FF40
analogous
#4047FF #9840FF #F840FF
triadic
#9840FF #FF9840 #40FF98
tetradic
#9840FF #FF4047 #A7FF40 #40FFF8
square
#9840FF #FF4047 #A7FF40 #40FFF8
split-complementary
#9840FF #FFF840 #47FF40
monochromatic
#5B00C5 #7703FF #9840FF #B97DFF #DABAFF

Accessibility & contrast

On white

4.65
#9840FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#9840FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9840FF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9840FF#FFFFFF#000000##FFFFFF
##9840FF1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FF
Deuteranopia (green-blind)
#0072FB
Tritanopia (blue-blind)
#7F739E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9840ff;
/* rgb */ color: rgb(152, 64, 255);
/* oklch */ color: oklch(59.2% 0.261 299.0);
Tailwind
colors: {
  custom: {
    50: '#be7eff',
    500: '#9840ff',
    950: '#000000',
  },
}
SCSS
$custom: #9840ff;
$custom-light: #be7eff;
$custom-dark: #000000;
JSON
{
  "hex": "#9840ff",
  "rgb": {
    "r": 152,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 267.644,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59205,
    "c": 0.26128,
    "h": 299
  },
  "luminance": 0.17562
}

Semantic roles & 50–950 ramp

primary
#9840FF
secondary
#D0F0AB
accent
#E6007C
background
#FCF8FF
surface
#F8EFFF
border
#D1CAD7
text
#130A18
muted
#827C86

Preview Lab

Preview with #9840FF

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

Preview Lab → · Contrast checker → · Palette generator →

#9840FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva