#874CD7#874CD7

#874CD7 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.203 H 299.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#874CD7
RGBrgb(135, 76, 215)
HSLhsl(265, 63%, 57%)
HSVhsv(265, 65%, 84%)
CMYKcmyk(37.2%, 64.7%, 0%, 15.7%)
CIE-LABlab(45.94, 52.68, -62.39)
CIE-LCHlch(45.94, 81.65, 310.18°)
OKLaboklab(55.69% 0.0991 -0.1776)
OKLCHoklch(55.69% 0.203 299.2)
XYZxyz(24.8388, 15.2258, 65.9070)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD7 #9CD74C
analogous
#4C57D7 #874CD7 #CD4CD7
triadic
#874CD7 #D7874C #4CD787
tetradic
#874CD7 #D74C57 #9CD74C #4CD7CD
square
#874CD7 #D74C57 #9CD74C #4CD7CD
split-complementary
#874CD7 #D7CD4C #57D74C
monochromatic
#4C1F8A #682ABC #874CD7 #A97EE2 #CAB0ED

Accessibility & contrast

On white

5.19
#874CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#874CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD7#FFFFFF#000000##FFFFFF
##874CD71.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#756C8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874cd7;
/* rgb */ color: rgb(135, 76, 215);
/* oklch */ color: oklch(55.7% 0.203 299.2);
Tailwind
colors: {
  custom: {
    50: '#af81e4',
    500: '#874cd7',
    950: '#000000',
  },
}
SCSS
$custom: #874cd7;
$custom-light: #af81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd7",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 265.468,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55688,
    "c": 0.20342,
    "h": 299.2
  },
  "luminance": 0.15226
}

Semantic roles & 50–950 ramp

primary
#874CD7
secondary
#C4DCA3
accent
#E641A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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