#874CD2#874CD2

#874CD2 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.3% C 0.198 H 300.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#874CD2
RGBrgb(135, 76, 210)
HSLhsl(266, 60%, 56%)
HSVhsv(266, 64%, 82%)
CMYKcmyk(35.7%, 63.8%, 0%, 17.6%)
CIE-LABlab(45.60, 51.43, -60.08)
CIE-LCHlch(45.60, 79.09, 310.56°)
OKLaboklab(55.33% 0.0996 -0.1708)
OKLCHoklch(55.33% 0.198 300.2)
XYZxyz(24.2061, 14.9727, 62.5750)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD2 #97D24C
analogous
#4C54D2 #874CD2 #CA4CD2
triadic
#874CD2 #D2874C #4CD287
tetradic
#874CD2 #D24C54 #97D24C #4CD2CA
square
#874CD2 #D24C54 #97D24C #4CD2CA
split-complementary
#874CD2 #D2CA4C #54D24C
monochromatic
#4C2183 #682DB4 #874CD2 #A87DDE #C9AEEB

Accessibility & contrast

On white

5.26
#874CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#874CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD2#FFFFFF#000000##FFFFFF
##874CD21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0E6BCF
Tritanopia (blue-blind)
#776A88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874cd2;
/* rgb */ color: rgb(135, 76, 210);
/* oklch */ color: oklch(55.3% 0.198 300.2);
Tailwind
colors: {
  custom: {
    50: '#af81e1',
    500: '#874cd2',
    950: '#000000',
  },
}
SCSS
$custom: #874cd2;
$custom-light: #af81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd2",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 266.418,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5533,
    "c": 0.19776,
    "h": 300.2
  },
  "luminance": 0.14973
}

Semantic roles & 50–950 ramp

primary
#874CD2
secondary
#C0D9A1
accent
#E3459D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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