#9875EF#9875EF

#9875EF is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.2% C 0.177 H 294.2°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9875EF
RGBrgb(152, 117, 239)
HSLhsl(257, 79%, 70%)
HSVhsv(257, 51%, 94%)
CMYKcmyk(36.4%, 51%, 0%, 6.3%)
CIE-LABlab(57.68, 40.39, -56.94)
CIE-LCHlch(57.68, 69.81, 305.35°)
OKLaboklab(65.18% 0.0724 -0.1611)
OKLCHoklch(65.18% 0.177 294.2)
XYZxyz(34.8861, 25.6293, 84.7535)
Luminance0.2563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9875EF #CCEF75
analogous
#758FEF #9875EF #D575EF
triadic
#9875EF #EF9875 #75EF98
tetradic
#9875EF #EF758F #CCEF75 #75EFD5
square
#9875EF #EF758F #CCEF75 #75EFD5
split-complementary
#9875EF #EFD575 #8FEF75
monochromatic
#4D18D1 #6F3EE9 #9875EF #C1ACF5 #EAE3FC

Accessibility & contrast

On white

3.43
#9875EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9875EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9875EF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9875EF#FFFFFF#000000##000000
##9875EF1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#448CF3
Deuteranopia (green-blind)
#4C89EC
Tritanopia (blue-blind)
#838DA7
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9875ef;
/* rgb */ color: rgb(152, 117, 239);
/* oklch */ color: oklch(65.2% 0.177 294.2);
Tailwind
colors: {
  custom: {
    50: '#ba9df5',
    500: '#9875ef',
    950: '#000000',
  },
}
SCSS
$custom: #9875ef;
$custom-light: #ba9df5;
$custom-dark: #000000;
JSON
{
  "hex": "#9875ef",
  "rgb": {
    "r": 152,
    "g": 117,
    "b": 239
  },
  "hsl": {
    "h": 257.213,
    "s": 79.221,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65182,
    "c": 0.17664,
    "h": 294.2
  },
  "luminance": 0.2563
}

Semantic roles & 50–950 ramp

primary
#9875EF
secondary
#E7F1CF
accent
#DC0A9F
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9875EF

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

Preview Lab → · Contrast checker → · Palette generator →

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