#874ED1#874ED1

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

Color values

HEX#874ED1
RGBrgb(135, 78, 209)
HSLhsl(266, 59%, 56%)
HSVhsv(266, 63%, 82%)
CMYKcmyk(35.4%, 62.7%, 0%, 18%)
CIE-LABlab(45.91, 50.14, -59.00)
CIE-LCHlch(45.91, 77.43, 310.36°)
OKLaboklab(55.54% 0.0974 -0.1677)
OKLCHoklch(55.54% 0.194 300.2)
XYZxyz(24.2219, 15.2029, 61.9676)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED1 #98D14E
analogous
#4E57D1 #874ED1 #C94ED1
triadic
#874ED1 #D1874E #4ED187
tetradic
#874ED1 #D14E57 #98D14E #4ED1C9
square
#874ED1 #D14E57 #98D14E #4ED1C9
split-complementary
#874ED1 #D1C94E #57D14E
monochromatic
#4C2283 #682FB3 #874ED1 #A87FDE #C9AFEA

Accessibility & contrast

On white

5.20
#874ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#874ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED1#FFFFFF#000000##FFFFFF
##874ED11.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#186CCE
Tritanopia (blue-blind)
#776B88
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874ed1;
/* rgb */ color: rgb(135, 78, 209);
/* oklch */ color: oklch(55.5% 0.194 300.2);
Tailwind
colors: {
  custom: {
    50: '#af83e0',
    500: '#874ed1',
    950: '#000000',
  },
}
SCSS
$custom: #874ed1;
$custom-light: #af83e0;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed1",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 209
  },
  "hsl": {
    "h": 266.107,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55536,
    "c": 0.19393,
    "h": 300.2
  },
  "luminance": 0.15203
}

Semantic roles & 50–950 ramp

primary
#874ED1
secondary
#C1D8A2
accent
#E2469E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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