#874BC1#874BC1

#874BC1 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.180 H 304.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#874BC1
RGBrgb(135, 75, 193)
HSLhsl(271, 49%, 53%)
HSVhsv(271, 61%, 76%)
CMYKcmyk(30.1%, 61.1%, 0%, 24.3%)
CIE-LABlab(44.28, 47.77, -52.38)
CIE-LCHlch(44.28, 70.90, 312.37°)
OKLaboklab(54.02% 0.1018 -0.1482)
OKLCHoklch(54.02% 0.18 304.5)
XYZxyz(22.1313, 14.0334, 51.9845)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BC1 #85C14B
analogous
#4C4BC1 #874BC1 #C14BC0
triadic
#874BC1 #C1874B #4BC187
tetradic
#874BC1 #C14C4B #85C14B #4BC0C1
square
#874BC1 #C14C4B #85C14B #4BC0C1
split-complementary
#874BC1 #C0C14B #4BC14C
monochromatic
#49256C #68359A #874BC1 #A579D1 #C4A6E0

Accessibility & contrast

On white

5.52
#874BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#874BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BC1
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BC1#FFFFFF#000000##FFFFFF
##874BC11.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0667C5
Deuteranopia (green-blind)
#2F69BE
Tritanopia (blue-blind)
#7D637F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874bc1;
/* rgb */ color: rgb(135, 75, 193);
/* oklch */ color: oklch(54.0% 0.180 304.5);
Tailwind
colors: {
  custom: {
    50: '#ae80d4',
    500: '#874bc1',
    950: '#000000',
  },
}
SCSS
$custom: #874bc1;
$custom-light: #ae80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#874bc1",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 193
  },
  "hsl": {
    "h": 270.508,
    "s": 48.76,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54018,
    "c": 0.17981,
    "h": 304.5
  },
  "luminance": 0.14033
}

Semantic roles & 50–950 ramp

primary
#874BC1
secondary
#B3CE9A
accent
#D84F93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #874BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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