#874DE1#874DE1

#874DE1 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.6% C 0.213 H 297.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#874DE1
RGBrgb(135, 77, 225)
HSLhsl(264, 71%, 59%)
HSVhsv(264, 66%, 88%)
CMYKcmyk(40%, 65.8%, 0%, 11.8%)
CIE-LABlab(46.84, 54.70, -66.63)
CIE-LCHlch(46.84, 86.21, 309.38°)
OKLaboklab(56.56% 0.097 -0.1901)
OKLCHoklch(56.56% 0.213 297)
XYZxyz(26.2326, 15.8944, 72.9054)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DE1 #A7E14D
analogous
#4D5DE1 #874DE1 #D14DE1
triadic
#874DE1 #E1874D #4DE187
tetradic
#874DE1 #E14D5D #A7E14D #4DE1D1
square
#874DE1 #E14D5D #A7E14D #4DE1D1
split-complementary
#874DE1 #E1D14D #5DE14D
monochromatic
#4C1A9A #6623CE #874DE1 #AA81EA #CEB6F3

Accessibility & contrast

On white

5.03
#874DE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#874DE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DE1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DE1#FFFFFF#000000##FFFFFF
##874DE11.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #874de1;
/* rgb */ color: rgb(135, 77, 225);
/* oklch */ color: oklch(56.6% 0.213 297.0);
Tailwind
colors: {
  custom: {
    50: '#b082eb',
    500: '#874de1',
    950: '#000000',
  },
}
SCSS
$custom: #874de1;
$custom-light: #b082eb;
$custom-dark: #000000;
JSON
{
  "hex": "#874de1",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 225
  },
  "hsl": {
    "h": 263.514,
    "s": 71.154,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56555,
    "c": 0.21343,
    "h": 297
  },
  "luminance": 0.15895
}

Semantic roles & 50–950 ramp

primary
#874DE1
secondary
#CBE2A8
accent
#EE3AA7
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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