#874CC4#874CC4

#874CC4 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.182 H 303.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#874CC4
RGBrgb(135, 76, 196)
HSLhsl(270, 50%, 53%)
HSVhsv(270, 61%, 77%)
CMYKcmyk(31.1%, 61.2%, 0%, 23.1%)
CIE-LABlab(44.67, 47.98, -53.50)
CIE-LCHlch(44.67, 71.86, 311.88°)
OKLaboklab(54.36% 0.1005 -0.1515)
OKLCHoklch(54.36% 0.182 303.5)
XYZxyz(22.5377, 14.3053, 53.7877)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CC4 #89C44C
analogous
#4C4DC4 #874CC4 #C34CC4
triadic
#874CC4 #C4874C #4CC487
tetradic
#874CC4 #C44C4D #89C44C #4CC4C3
square
#874CC4 #C44C4D #89C44C #4CC4C3
split-complementary
#874CC4 #C4C34C #4DC44C
monochromatic
#4A2571 #69349F #874CC4 #A67AD3 #C5A8E2

Accessibility & contrast

On white

5.44
#874CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#874CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CC4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CC4#FFFFFF#000000##FFFFFF
##874CC41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#2C69C1
Tritanopia (blue-blind)
#7C6581
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874cc4;
/* rgb */ color: rgb(135, 76, 196);
/* oklch */ color: oklch(54.4% 0.182 303.5);
Tailwind
colors: {
  custom: {
    50: '#ae81d6',
    500: '#874cc4',
    950: '#000000',
  },
}
SCSS
$custom: #874cc4;
$custom-light: #ae81d6;
$custom-dark: #000000;
JSON
{
  "hex": "#874cc4",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 269.5,
    "s": 50.42,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54361,
    "c": 0.1818,
    "h": 303.5
  },
  "luminance": 0.14305
}

Semantic roles & 50–950 ramp

primary
#874CC4
secondary
#B6D09C
accent
#DA4E95
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #874CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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