#874ED4#874ED4

#874ED4 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.197 H 299.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#874ED4
RGBrgb(135, 78, 212)
HSLhsl(266, 61%, 57%)
HSVhsv(266, 63%, 83%)
CMYKcmyk(36.3%, 63.2%, 0%, 16.9%)
CIE-LABlab(46.11, 50.90, -60.39)
CIE-LCHlch(46.11, 78.98, 310.12°)
OKLaboklab(55.75% 0.0972 -0.1718)
OKLCHoklch(55.75% 0.197 299.5)
XYZxyz(24.5968, 15.3529, 63.9421)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED4 #9BD44E
analogous
#4E58D4 #874ED4 #CA4ED4
triadic
#874ED4 #D4874E #4ED487
tetradic
#874ED4 #D44E58 #9BD44E #4ED4CA
square
#874ED4 #D44E58 #9BD44E #4ED4CA
split-complementary
#874ED4 #D4CA4E #58D44E
monochromatic
#4C2187 #682DB8 #874ED4 #A87FE0 #CAB0EC

Accessibility & contrast

On white

5.16
#874ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#874ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED4#FFFFFF#000000##FFFFFF
##874ED41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#0E6CD1
Tritanopia (blue-blind)
#766C8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874ed4;
/* rgb */ color: rgb(135, 78, 212);
/* oklch */ color: oklch(55.7% 0.197 299.5);
Tailwind
colors: {
  custom: {
    50: '#af83e2',
    500: '#874ed4',
    950: '#000000',
  },
}
SCSS
$custom: #874ed4;
$custom-light: #af83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed4",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 212
  },
  "hsl": {
    "h": 265.522,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55747,
    "c": 0.19736,
    "h": 299.5
  },
  "luminance": 0.15353
}

Semantic roles & 50–950 ramp

primary
#874ED4
secondary
#C3DAA4
accent
#E444A0
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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