#874ED8#874ED8

#874ED8 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.0% C 0.202 H 298.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#874ED8
RGBrgb(135, 78, 216)
HSLhsl(265, 64%, 58%)
HSVhsv(265, 64%, 85%)
CMYKcmyk(37.5%, 63.9%, 0%, 15.3%)
CIE-LABlab(46.39, 51.90, -62.23)
CIE-LCHlch(46.39, 81.04, 309.83°)
OKLaboklab(56.03% 0.0969 -0.1772)
OKLCHoklch(56.03% 0.202 298.7)
XYZxyz(25.1076, 15.5572, 66.6325)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED8 #9FD84E
analogous
#4E5AD8 #874ED8 #CC4ED8
triadic
#874ED8 #D8874E #4ED887
tetradic
#874ED8 #D84E5A #9FD84E #4ED8CC
square
#874ED8 #D84E5A #9FD84E #4ED8CC
split-complementary
#874ED8 #D8CC4E #5AD84E
monochromatic
#4C1F8D #672ABF #874ED8 #A980E3 #CBB2EE

Accessibility & contrast

On white

5.11
#874ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#874ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED8#FFFFFF#000000##FFFFFF
##874ED81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#006DD5
Tritanopia (blue-blind)
#746D8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874ed8;
/* rgb */ color: rgb(135, 78, 216);
/* oklch */ color: oklch(56.0% 0.202 298.7);
Tailwind
colors: {
  custom: {
    50: '#af83e5',
    500: '#874ed8',
    950: '#000000',
  },
}
SCSS
$custom: #874ed8;
$custom-light: #af83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed8",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 264.783,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56032,
    "c": 0.20194,
    "h": 298.7
  },
  "luminance": 0.15558
}

Semantic roles & 50–950 ramp

primary
#874ED8
secondary
#C6DDA5
accent
#E741A2
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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