#874EC2#874EC2

#874EC2 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.177 H 303.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#874EC2
RGBrgb(135, 78, 194)
HSLhsl(269, 49%, 53%)
HSVhsv(269, 60%, 76%)
CMYKcmyk(30.4%, 59.8%, 0%, 23.9%)
CIE-LABlab(44.93, 46.43, -51.91)
CIE-LCHlch(44.93, 69.65, 311.81°)
OKLaboklab(54.51% 0.0981 -0.1469)
OKLCHoklch(54.51% 0.177 303.7)
XYZxyz(22.4515, 14.4948, 52.6434)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EC2 #89C24E
analogous
#4E4FC2 #874EC2 #C14EC2
triadic
#874EC2 #C2874E #4EC287
tetradic
#874EC2 #C24E4F #89C24E #4EC2C1
square
#874EC2 #C24E4F #89C24E #4EC2C1
split-complementary
#874EC2 #C2C14E #4FC24E
monochromatic
#4A266F #69369D #874EC2 #A67CD2 #C5A9E1

Accessibility & contrast

On white

5.39
#874EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#874EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EC2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EC2#FFFFFF#000000##FFFFFF
##874EC21.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1369C6
Deuteranopia (green-blind)
#326ABF
Tritanopia (blue-blind)
#7C6681
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874ec2;
/* rgb */ color: rgb(135, 78, 194);
/* oklch */ color: oklch(54.5% 0.177 303.7);
Tailwind
colors: {
  custom: {
    50: '#ae82d5',
    500: '#874ec2',
    950: '#000000',
  },
}
SCSS
$custom: #874ec2;
$custom-light: #ae82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#874ec2",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 269.483,
    "s": 48.739,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54514,
    "c": 0.17659,
    "h": 303.7
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#874EC2
secondary
#B6CF9D
accent
#D85095
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #874EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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