#874CD1#874CD1

#874CD1 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.3% C 0.197 H 300.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#874CD1
RGBrgb(135, 76, 209)
HSLhsl(267, 59%, 56%)
HSVhsv(267, 64%, 82%)
CMYKcmyk(35.4%, 63.6%, 0%, 18%)
CIE-LABlab(45.53, 51.18, -59.62)
CIE-LCHlch(45.53, 78.57, 310.65°)
OKLaboklab(55.26% 0.0997 -0.1695)
OKLCHoklch(55.26% 0.197 300.5)
XYZxyz(24.0819, 14.9231, 61.9209)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD1 #96D14C
analogous
#4C53D1 #874CD1 #CA4CD1
triadic
#874CD1 #D1874C #4CD187
tetradic
#874CD1 #D14C53 #96D14C #4CD1CA
square
#874CD1 #D14C53 #96D14C #4CD1CA
split-complementary
#874CD1 #D1CA4C #53D14C
monochromatic
#4C2181 #682EB2 #874CD1 #A87DDE #C8ADEA

Accessibility & contrast

On white

5.27
#874CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#874CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD1
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD1#FFFFFF#000000##FFFFFF
##874CD11.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#126BCE
Tritanopia (blue-blind)
#776988
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874cd1;
/* rgb */ color: rgb(135, 76, 209);
/* oklch */ color: oklch(55.3% 0.197 300.5);
Tailwind
colors: {
  custom: {
    50: '#af81e0',
    500: '#874cd1',
    950: '#000000',
  },
}
SCSS
$custom: #874cd1;
$custom-light: #af81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd1",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 209
  },
  "hsl": {
    "h": 266.617,
    "s": 59.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55259,
    "c": 0.19663,
    "h": 300.5
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#874CD1
secondary
#C0D8A1
accent
#E2469D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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