#874ED0#874ED0

#874ED0 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.5% C 0.193 H 300.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#874ED0
RGBrgb(135, 78, 208)
HSLhsl(266, 58%, 56%)
HSVhsv(266, 63%, 82%)
CMYKcmyk(35.1%, 62.5%, 0%, 18.4%)
CIE-LABlab(45.84, 49.89, -58.53)
CIE-LCHlch(45.84, 76.91, 310.44°)
OKLaboklab(55.47% 0.0975 -0.1663)
OKLCHoklch(55.47% 0.193 300.4)
XYZxyz(24.0985, 15.1536, 61.3176)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED0 #97D04E
analogous
#4E56D0 #874ED0 #C84ED0
triadic
#874ED0 #D0874E #4ED087
tetradic
#874ED0 #D04E56 #97D04E #4ED0C8
square
#874ED0 #D04E56 #97D04E #4ED0C8
split-complementary
#874ED0 #D0C84E #56D04E
monochromatic
#4C2281 #682FB2 #874ED0 #A87EDD #C9AFEA

Accessibility & contrast

On white

5.21
#874ED0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#874ED0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED0
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED0#FFFFFF#000000##FFFFFF
##874ED01.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD4
Deuteranopia (green-blind)
#1B6CCD
Tritanopia (blue-blind)
#776A88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874ed0;
/* rgb */ color: rgb(135, 78, 208);
/* oklch */ color: oklch(55.5% 0.193 300.4);
Tailwind
colors: {
  custom: {
    50: '#af82df',
    500: '#874ed0',
    950: '#000000',
  },
}
SCSS
$custom: #874ed0;
$custom-light: #af82df;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed0",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 208
  },
  "hsl": {
    "h": 266.308,
    "s": 58.036,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55466,
    "c": 0.19277,
    "h": 300.4
  },
  "luminance": 0.15154
}

Semantic roles & 50–950 ramp

primary
#874ED0
secondary
#C0D8A2
accent
#E1479D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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