#874ED2#874ED2

#874ED2 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.6% C 0.195 H 299.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#874ED2
RGBrgb(135, 78, 210)
HSLhsl(266, 59%, 56%)
HSVhsv(266, 63%, 82%)
CMYKcmyk(35.7%, 62.9%, 0%, 17.6%)
CIE-LABlab(45.98, 50.39, -59.46)
CIE-LCHlch(45.98, 77.95, 310.28°)
OKLaboklab(55.61% 0.0974 -0.169)
OKLCHoklch(55.61% 0.195 299.9)
XYZxyz(24.3461, 15.2526, 62.6217)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED2 #99D24E
analogous
#4E57D2 #874ED2 #C94ED2
triadic
#874ED2 #D2874E #4ED287
tetradic
#874ED2 #D24E57 #99D24E #4ED2C9
square
#874ED2 #D24E57 #99D24E #4ED2C9
split-complementary
#874ED2 #D2C94E #57D24E
monochromatic
#4C2284 #682EB5 #874ED2 #A87FDE #C9B0EB

Accessibility & contrast

On white

5.18
#874ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#874ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED2#FFFFFF#000000##FFFFFF
##874ED21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#156CCF
Tritanopia (blue-blind)
#776B89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874ed2;
/* rgb */ color: rgb(135, 78, 210);
/* oklch */ color: oklch(55.6% 0.195 299.9);
Tailwind
colors: {
  custom: {
    50: '#af83e1',
    500: '#874ed2',
    950: '#000000',
  },
}
SCSS
$custom: #874ed2;
$custom-light: #af83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed2",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 265.909,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55606,
    "c": 0.19507,
    "h": 299.9
  },
  "luminance": 0.15253
}

Semantic roles & 50–950 ramp

primary
#874ED2
secondary
#C2D9A3
accent
#E3459F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874ED2

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

Preview Lab → · Contrast checker → · Palette generator →

#874ED2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva