#874BCC#874BCC

#874BCC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.8% C 0.192 H 301.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#874BCC
RGBrgb(135, 75, 204)
HSLhsl(268, 56%, 55%)
HSVhsv(268, 63%, 80%)
CMYKcmyk(33.8%, 63.2%, 0%, 20%)
CIE-LABlab(45.00, 50.46, -57.59)
CIE-LCHlch(45.00, 76.57, 311.22°)
OKLaboklab(54.77% 0.1012 -0.1635)
OKLCHoklch(54.77% 0.192 301.8)
XYZxyz(23.4043, 14.5426, 58.6890)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BCC #90CC4B
analogous
#4B50CC #874BCC #C84BCC
triadic
#874BCC #CC874B #4BCC87
tetradic
#874BCC #CC4B50 #90CC4B #4BCCC8
square
#874BCC #CC4B50 #90CC4B #4BCCC8
split-complementary
#874BCC #CCC84B #50CC4B
monochromatic
#4B237A #6930AA #874BCC #A77BDA #C7AAE7

Accessibility & contrast

On white

5.37
#874BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#874BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BCC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BCC#FFFFFF#000000##FFFFFF
##874BCC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#1C6AC9
Tritanopia (blue-blind)
#796785
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874bcc;
/* rgb */ color: rgb(135, 75, 204);
/* oklch */ color: oklch(54.8% 0.192 301.8);
Tailwind
colors: {
  custom: {
    50: '#af81dc',
    500: '#874bcc',
    950: '#000000',
  },
}
SCSS
$custom: #874bcc;
$custom-light: #af81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#874bcc",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 204
  },
  "hsl": {
    "h": 267.907,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5477,
    "c": 0.19231,
    "h": 301.8
  },
  "luminance": 0.14543
}

Semantic roles & 50–950 ramp

primary
#874BCC
secondary
#BBD59E
accent
#DF4999
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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