#9874CA#9874CA

#9874CA is a light, vivid violet. Relative luminance 0.234; OKLCH L 62.9% C 0.130 H 302.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#9874CA
RGBrgb(152, 116, 202)
HSLhsl(265, 45%, 62%)
HSVhsv(265, 43%, 79%)
CMYKcmyk(24.8%, 42.6%, 0%, 20.8%)
CIE-LABlab(55.51, 31.63, -39.58)
CIE-LCHlch(55.51, 50.67, 308.63°)
OKLaboklab(62.93% 0.0693 -0.1105)
OKLCHoklch(62.93% 0.13 302.1)
XYZxyz(29.8526, 23.4304, 58.8155)
Luminance0.2343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9874CA #A6CA74
analogous
#747BCA #9874CA #C374CA
triadic
#9874CA #CA9874 #74CA98
tetradic
#9874CA #CA747B #A6CA74 #74CAC3
square
#9874CA #CA747B #A6CA74 #74CAC3
split-complementary
#9874CA #CAC374 #7BCA74
monochromatic
#5B368E #7748B9 #9874CA #B9A0DB #DACDEC

Accessibility & contrast

On white

3.69
#9874CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#9874CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9874CA
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9874CA#FFFFFF#000000##000000
##9874CA1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D84CD
Deuteranopia (green-blind)
#6585C8
Tritanopia (blue-blind)
#8F8395
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9874ca;
/* rgb */ color: rgb(152, 116, 202);
/* oklch */ color: oklch(62.9% 0.130 302.1);
Tailwind
colors: {
  custom: {
    50: '#b89cda',
    500: '#9874ca',
    950: '#000000',
  },
}
SCSS
$custom: #9874ca;
$custom-light: #b89cda;
$custom-dark: #000000;
JSON
{
  "hex": "#9874ca",
  "rgb": {
    "r": 152,
    "g": 116,
    "b": 202
  },
  "hsl": {
    "h": 265.116,
    "s": 44.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62925,
    "c": 0.13042,
    "h": 302.1
  },
  "luminance": 0.2343
}

Semantic roles & 50–950 ramp

primary
#9874CA
secondary
#CFDDBD
accent
#B82E7E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9874CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9874CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva