#874CE1#874CE1

#874CE1 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.215 H 297.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#874CE1
RGBrgb(135, 76, 225)
HSLhsl(264, 71%, 59%)
HSVhsv(264, 66%, 88%)
CMYKcmyk(40%, 66.2%, 0%, 11.8%)
CIE-LABlab(46.65, 55.20, -66.93)
CIE-LCHlch(46.65, 86.76, 309.51°)
OKLaboklab(56.42% 0.098 -0.191)
OKLCHoklch(56.42% 0.215 297.2)
XYZxyz(26.1632, 15.7556, 72.8823)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CE1 #A6E14C
analogous
#4C5CE1 #874CE1 #D14CE1
triadic
#874CE1 #E1874C #4CE187
tetradic
#874CE1 #E14C5C #A6E14C #4CE1D1
square
#874CE1 #E14C5C #A6E14C #4CE1D1
split-complementary
#874CE1 #E1D14C #5CE14C
monochromatic
#4C1A99 #6622CD #874CE1 #AA80EA #CDB5F3

Accessibility & contrast

On white

5.06
#874CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#874CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CE1
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CE1#FFFFFF#000000##FFFFFF
##874CE11.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE6
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#716F90
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874ce1;
/* rgb */ color: rgb(135, 76, 225);
/* oklch */ color: oklch(56.4% 0.215 297.2);
Tailwind
colors: {
  custom: {
    50: '#b082eb',
    500: '#874ce1',
    950: '#000000',
  },
}
SCSS
$custom: #874ce1;
$custom-light: #b082eb;
$custom-dark: #000000;
JSON
{
  "hex": "#874ce1",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 225
  },
  "hsl": {
    "h": 263.758,
    "s": 71.292,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56423,
    "c": 0.21467,
    "h": 297.2
  },
  "luminance": 0.15756
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #874CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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