#874CC7#874CC7

#874CC7 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.6% C 0.185 H 302.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#874CC7
RGBrgb(135, 76, 199)
HSLhsl(269, 52%, 54%)
HSVhsv(269, 62%, 78%)
CMYKcmyk(32.2%, 61.8%, 0%, 22%)
CIE-LABlab(44.86, 48.71, -54.93)
CIE-LCHlch(44.86, 73.41, 311.57°)
OKLaboklab(54.56% 0.1003 -0.1557)
OKLCHoklch(54.56% 0.185 302.8)
XYZxyz(22.8825, 14.4433, 55.6041)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CC7 #8CC74C
analogous
#4C4FC7 #874CC7 #C44CC7
triadic
#874CC7 #C7874C #4CC787
tetradic
#874CC7 #C74C4F #8CC74C #4CC7C4
square
#874CC7 #C74C4F #8CC74C #4CC7C4
split-complementary
#874CC7 #C7C44C #4FC74C
monochromatic
#4B2474 #6933A3 #874CC7 #A67BD6 #C6A9E4

Accessibility & contrast

On white

5.40
#874CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#874CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CC7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CC7#FFFFFF#000000##FFFFFF
##874CC71.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#286AC4
Tritanopia (blue-blind)
#7B6682
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874cc7;
/* rgb */ color: rgb(135, 76, 199);
/* oklch */ color: oklch(54.6% 0.185 302.8);
Tailwind
colors: {
  custom: {
    50: '#ae81d9',
    500: '#874cc7',
    950: '#000000',
  },
}
SCSS
$custom: #874cc7;
$custom-light: #ae81d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874cc7",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 268.78,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54564,
    "c": 0.18523,
    "h": 302.8
  },
  "luminance": 0.14443
}

Semantic roles & 50–950 ramp

primary
#874CC7
secondary
#B8D29D
accent
#DC4C97
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A15
muted
#807C83

Preview Lab

Preview with #874CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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