#874CC2#874CC2

#874CC2 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.180 H 304.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#874CC2
RGBrgb(135, 76, 194)
HSLhsl(270, 49%, 53%)
HSVhsv(270, 61%, 76%)
CMYKcmyk(30.4%, 60.8%, 0%, 23.9%)
CIE-LABlab(44.54, 47.49, -52.55)
CIE-LCHlch(44.54, 70.83, 312.11°)
OKLaboklab(54.23% 0.1005 -0.1487)
OKLCHoklch(54.23% 0.18 304.1)
XYZxyz(22.3115, 14.2149, 52.5968)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CC2 #87C24C
analogous
#4C4CC2 #874CC2 #C24CC2
triadic
#874CC2 #C2874C #4CC287
tetradic
#874CC2 #C24C4C #87C24C #4CC2C2
square
#874CC2 #C24C4C #87C24C #4CC2C2
split-complementary
#874CC2 #C2C24C #4CC24C
monochromatic
#4A266E #68359C #874CC2 #A67AD2 #C4A7E1

Accessibility & contrast

On white

5.46
#874CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#874CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CC2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CC2#FFFFFF#000000##FFFFFF
##874CC21.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0868C6
Deuteranopia (green-blind)
#2F69BF
Tritanopia (blue-blind)
#7C6480
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874cc2;
/* rgb */ color: rgb(135, 76, 194);
/* oklch */ color: oklch(54.2% 0.180 304.1);
Tailwind
colors: {
  custom: {
    50: '#ae81d5',
    500: '#874cc2',
    950: '#000000',
  },
}
SCSS
$custom: #874cc2;
$custom-light: #ae81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#874cc2",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54227,
    "c": 0.17951,
    "h": 304.1
  },
  "luminance": 0.14215
}

Semantic roles & 50–950 ramp

primary
#874CC2
secondary
#B5CE9B
accent
#D94F94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #874CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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