#985CE7#985CE7

#985CE7 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.203 H 300.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#985CE7
RGBrgb(152, 92, 231)
HSLhsl(266, 74%, 63%)
HSVhsv(266, 60%, 91%)
CMYKcmyk(34.2%, 60.2%, 0%, 9.4%)
CIE-LABlab(51.95, 52.02, -61.66)
CIE-LCHlch(51.95, 80.67, 310.15°)
OKLaboklab(60.8% 0.1024 -0.175)
OKLCHoklch(60.8% 0.203 300.3)
XYZxyz(31.1964, 20.0990, 77.8218)
Luminance0.2010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985CE7 #ABE75C
analogous
#5C65E7 #985CE7 #DD5CE7
triadic
#985CE7 #E7985C #5CE798
tetradic
#985CE7 #E75C65 #ABE75C #5CE7DD
square
#985CE7 #E75C65 #ABE75C #5CE7DD
split-complementary
#985CE7 #E7DD5C #65E75C
monochromatic
#5A1AAF #7627DF #985CE7 #BA91EF #DBC7F7

Accessibility & contrast

On white

4.18
#985CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#985CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985CE7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985CE7#FFFFFF#000000##000000
##985CE71.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#2C7BE4
Tritanopia (blue-blind)
#877A99
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #985ce7;
/* rgb */ color: rgb(152, 92, 231);
/* oklch */ color: oklch(60.8% 0.203 300.3);
Tailwind
colors: {
  custom: {
    50: '#bb8def',
    500: '#985ce7',
    950: '#000000',
  },
}
SCSS
$custom: #985ce7;
$custom-light: #bb8def;
$custom-dark: #000000;
JSON
{
  "hex": "#985ce7",
  "rgb": {
    "r": 152,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 265.899,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60804,
    "c": 0.20276,
    "h": 300.3
  },
  "luminance": 0.20099
}

Semantic roles & 50–950 ramp

primary
#985CE7
secondary
#D3E8B7
accent
#D60F80
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #985CE7

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

Preview Lab → · Contrast checker → · Palette generator →

#985CE7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva