#874CCC#874CCC

#874CCC is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.191 H 301.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#874CCC
RGBrgb(135, 76, 204)
HSLhsl(268, 56%, 55%)
HSVhsv(268, 63%, 80%)
CMYKcmyk(33.8%, 62.7%, 0%, 20%)
CIE-LABlab(45.19, 49.94, -57.28)
CIE-LCHlch(45.19, 76.00, 311.08°)
OKLaboklab(54.91% 0.1001 -0.1626)
OKLCHoklch(54.91% 0.191 301.6)
XYZxyz(23.4726, 14.6793, 58.7118)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CCC #91CC4C
analogous
#4C51CC #874CCC #C74CCC
triadic
#874CCC #CC874C #4CCC87
tetradic
#874CCC #CC4C51 #91CC4C #4CCCC7
square
#874CCC #CC4C51 #91CC4C #4CCCC7
split-complementary
#874CCC #CCC74C #51CC4C
monochromatic
#4B237B #6931AA #874CCC #A77CDA #C7ABE7

Accessibility & contrast

On white

5.34
#874CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#874CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CCC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CCC#FFFFFF#000000##FFFFFF
##874CCC1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#1F6AC9
Tritanopia (blue-blind)
#796885
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ccc;
/* rgb */ color: rgb(135, 76, 204);
/* oklch */ color: oklch(54.9% 0.191 301.6);
Tailwind
colors: {
  custom: {
    50: '#af81dc',
    500: '#874ccc',
    950: '#000000',
  },
}
SCSS
$custom: #874ccc;
$custom-light: #af81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#874ccc",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 267.656,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54908,
    "c": 0.19094,
    "h": 301.6
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#874CCC
secondary
#BCD59F
accent
#DF499A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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