#874ED3#874ED3

#874ED3 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.196 H 299.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#874ED3
RGBrgb(135, 78, 211)
HSLhsl(266, 60%, 57%)
HSVhsv(266, 63%, 83%)
CMYKcmyk(36%, 63%, 0%, 17.3%)
CIE-LABlab(46.05, 50.64, -59.93)
CIE-LCHlch(46.05, 78.46, 310.20°)
OKLaboklab(55.68% 0.0973 -0.1704)
OKLCHoklch(55.68% 0.196 299.7)
XYZxyz(24.4710, 15.3026, 63.2798)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874ED3 #9AD34E
analogous
#4E58D3 #874ED3 #C94ED3
triadic
#874ED3 #D3874E #4ED387
tetradic
#874ED3 #D34E58 #9AD34E #4ED3C9
square
#874ED3 #D34E58 #9AD34E #4ED3C9
split-complementary
#874ED3 #D3C94E #58D34E
monochromatic
#4C2185 #682DB6 #874ED3 #A87FDF #C9B0EB

Accessibility & contrast

On white

5.17
#874ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#874ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874ED3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874ED3#FFFFFF#000000##FFFFFF
##874ED31.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#126CD0
Tritanopia (blue-blind)
#766B89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874ed3;
/* rgb */ color: rgb(135, 78, 211);
/* oklch */ color: oklch(55.7% 0.196 299.7);
Tailwind
colors: {
  custom: {
    50: '#af83e1',
    500: '#874ed3',
    950: '#000000',
  },
}
SCSS
$custom: #874ed3;
$custom-light: #af83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874ed3",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 211
  },
  "hsl": {
    "h": 265.714,
    "s": 60.181,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55676,
    "c": 0.19622,
    "h": 299.7
  },
  "luminance": 0.15303
}

Semantic roles & 50–950 ramp

primary
#874ED3
secondary
#C2DAA3
accent
#E3449F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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