#874ED6#874ED6

#874ED6 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.9% C 0.200 H 299.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#874ED6
RGBrgb(135, 78, 214)
HSLhsl(265, 62%, 57%)
HSVhsv(265, 64%, 84%)
CMYKcmyk(36.9%, 63.6%, 0%, 16.1%)
CIE-LABlab(46.25, 51.40, -61.31)
CIE-LCHlch(46.25, 80.01, 309.97°)
OKLaboklab(55.89% 0.097 -0.1745)
OKLCHoklch(55.89% 0.2 299.1)
XYZxyz(24.8506, 15.4544, 65.2790)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED6 #9DD64E
analogous
#4E59D6 #874ED6 #CB4ED6
triadic
#874ED6 #D6874E #4ED687
tetradic
#874ED6 #D64E59 #9DD64E #4ED6CB
square
#874ED6 #D64E59 #9DD64E #4ED6CB
split-complementary
#874ED6 #D6CB4E #59D64E
monochromatic
#4C208A #682BBB #874ED6 #A980E2 #CAB1ED

Accessibility & contrast

On white

5.13
#874ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#874ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED6#FFFFFF#000000##FFFFFF
##874ED61.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#046CD3
Tritanopia (blue-blind)
#756C8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874ed6;
/* rgb */ color: rgb(135, 78, 214);
/* oklch */ color: oklch(55.9% 0.200 299.1);
Tailwind
colors: {
  custom: {
    50: '#af83e3',
    500: '#874ed6',
    950: '#000000',
  },
}
SCSS
$custom: #874ed6;
$custom-light: #af83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed6",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 265.147,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55889,
    "c": 0.19965,
    "h": 299.1
  },
  "luminance": 0.15455
}

Semantic roles & 50–950 ramp

primary
#874ED6
secondary
#C4DBA4
accent
#E542A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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