#874BC4#874BC4

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

Color values

HEX#874BC4
RGBrgb(135, 75, 196)
HSLhsl(270, 51%, 53%)
HSVhsv(270, 62%, 77%)
CMYKcmyk(31.1%, 61.7%, 0%, 23.1%)
CIE-LABlab(44.47, 48.50, -53.81)
CIE-LCHlch(44.47, 72.44, 312.03°)
OKLaboklab(54.22% 0.1017 -0.1524)
OKLCHoklch(54.22% 0.183 303.7)
XYZxyz(22.4693, 14.1686, 53.7649)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BC4 #88C44B
analogous
#4B4BC4 #874BC4 #C34BC4
triadic
#874BC4 #C4874B #4BC487
tetradic
#874BC4 #C44B4B #88C44B #4BC4C3
square
#874BC4 #C44B4B #88C44B #4BC4C3
split-complementary
#874BC4 #C4C34B #4BC44B
monochromatic
#4A2570 #68349E #874BC4 #A679D3 #C4A7E2

Accessibility & contrast

On white

5.48
#874BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#874BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BC4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BC4#FFFFFF#000000##FFFFFF
##874BC41.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#2B69C1
Tritanopia (blue-blind)
#7C6480
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874bc4;
/* rgb */ color: rgb(135, 75, 196);
/* oklch */ color: oklch(54.2% 0.183 303.7);
Tailwind
colors: {
  custom: {
    50: '#ae80d7',
    500: '#874bc4',
    950: '#000000',
  },
}
SCSS
$custom: #874bc4;
$custom-light: #ae80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#874bc4",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 196
  },
  "hsl": {
    "h": 269.752,
    "s": 50.628,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5422,
    "c": 0.18323,
    "h": 303.7
  },
  "luminance": 0.14169
}

Semantic roles & 50–950 ramp

primary
#874BC4
secondary
#B6CF9B
accent
#DA4E94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #874BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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