#985EDB#985EDB

#985EDB is a mid, vivid violet. Relative luminance 0.198; OKLCH L 60.3% C 0.186 H 302.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#985EDB
RGBrgb(152, 94, 219)
HSLhsl(268, 63%, 61%)
HSVhsv(268, 57%, 86%)
CMYKcmyk(30.6%, 57.1%, 0%, 14.1%)
CIE-LABlab(51.60, 48.03, -55.44)
CIE-LCHlch(51.60, 73.35, 310.90°)
OKLaboklab(60.32% 0.1002 -0.1567)
OKLCHoklch(60.32% 0.186 302.6)
XYZxyz(29.7349, 19.7953, 69.2584)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#985EDB #A1DB5E
analogous
#5E63DB #985EDB #D75EDB
triadic
#985EDB #DB985E #5EDB98
tetradic
#985EDB #DB5E63 #A1DB5E #5EDBD7
square
#985EDB #DB5E63 #A1DB5E #5EDBD7
split-complementary
#985EDB #DBD75E #63DB5E
monochromatic
#5B239C #782ECE #985EDB #B890E6 #D8C2F1

Accessibility & contrast

On white

4.23
#985EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#985EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #985EDB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##985EDB#FFFFFF#000000##000000
##985EDB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#277ADF
Deuteranopia (green-blind)
#3F7BD8
Tritanopia (blue-blind)
#8B7794
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #985edb;
/* rgb */ color: rgb(152, 94, 219);
/* oklch */ color: oklch(60.3% 0.186 302.6);
Tailwind
colors: {
  custom: {
    50: '#ba8ee7',
    500: '#985edb',
    950: '#000000',
  },
}
SCSS
$custom: #985edb;
$custom-light: #ba8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#985edb",
  "rgb": {
    "r": 152,
    "g": 94,
    "b": 219
  },
  "hsl": {
    "h": 267.84,
    "s": 63.452,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60315,
    "c": 0.18603,
    "h": 302.6
  },
  "luminance": 0.19795
}

Semantic roles & 50–950 ramp

primary
#985EDB
secondary
#CCE2B3
accent
#CB1A79
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #985EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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