#874EE1#874EE1

#874EE1 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.7% C 0.212 H 296.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#874EE1
RGBrgb(135, 78, 225)
HSLhsl(263, 71%, 59%)
HSVhsv(263, 65%, 88%)
CMYKcmyk(40%, 65.3%, 0%, 11.8%)
CIE-LABlab(47.02, 54.19, -66.33)
CIE-LCHlch(47.02, 85.65, 309.25°)
OKLaboklab(56.69% 0.0959 -0.1892)
OKLCHoklch(56.69% 0.212 296.9)
XYZxyz(26.3031, 16.0354, 72.9289)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EE1 #A8E14E
analogous
#4E5FE1 #874EE1 #D04EE1
triadic
#874EE1 #E1874E #4EE187
tetradic
#874EE1 #E14E5F #A8E14E #4EE1D0
square
#874EE1 #E14E5F #A8E14E #4EE1D0
split-complementary
#874EE1 #E1D04E #5FE14E
monochromatic
#4C1A9A #6623CF #874EE1 #AA82EA #CEB7F3

Accessibility & contrast

On white

4.99
#874EE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#874EE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EE1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EE1#FFFFFF#000000##FFFFFF
##874EE11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E6
Deuteranopia (green-blind)
#006EDE
Tritanopia (blue-blind)
#717091
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874ee1;
/* rgb */ color: rgb(135, 78, 225);
/* oklch */ color: oklch(56.7% 0.212 296.9);
Tailwind
colors: {
  custom: {
    50: '#b083eb',
    500: '#874ee1',
    950: '#000000',
  },
}
SCSS
$custom: #874ee1;
$custom-light: #b083eb;
$custom-dark: #000000;
JSON
{
  "hex": "#874ee1",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 225
  },
  "hsl": {
    "h": 263.265,
    "s": 71.014,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56688,
    "c": 0.21217,
    "h": 296.9
  },
  "luminance": 0.16036
}

Semantic roles & 50–950 ramp

primary
#874EE1
secondary
#CCE2A9
accent
#EE3AA8
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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