#874CD3#874CD3

#874CD3 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.4% C 0.199 H 300.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#874CD3
RGBrgb(135, 76, 211)
HSLhsl(266, 61%, 56%)
HSVhsv(266, 64%, 83%)
CMYKcmyk(36%, 64%, 0%, 17.3%)
CIE-LABlab(45.67, 51.68, -60.54)
CIE-LCHlch(45.67, 79.60, 310.48°)
OKLaboklab(55.4% 0.0995 -0.1722)
OKLCHoklch(55.4% 0.199 300)
XYZxyz(24.3311, 15.0227, 63.2332)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD3 #98D34C
analogous
#4C55D3 #874CD3 #CA4CD3
triadic
#874CD3 #D3874C #4CD387
tetradic
#874CD3 #D34C55 #98D34C #4CD3CA
square
#874CD3 #D34C55 #98D34C #4CD3CA
split-complementary
#874CD3 #D3CA4C #55D34C
monochromatic
#4C2084 #682DB5 #874CD3 #A87DDF #C9AEEB

Accessibility & contrast

On white

5.24
#874CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#874CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD3#FFFFFF#000000##FFFFFF
##874CD31.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#096BD0
Tritanopia (blue-blind)
#766A89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874cd3;
/* rgb */ color: rgb(135, 76, 211);
/* oklch */ color: oklch(55.4% 0.199 300.0);
Tailwind
colors: {
  custom: {
    50: '#af81e1',
    500: '#874cd3',
    950: '#000000',
  },
}
SCSS
$custom: #874cd3;
$custom-light: #af81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd3",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 266.222,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55401,
    "c": 0.19889,
    "h": 300
  },
  "luminance": 0.15023
}

Semantic roles & 50–950 ramp

primary
#874CD3
secondary
#C1D9A2
accent
#E4449E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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