#874DD1#874DD1

#874DD1 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.4% C 0.195 H 300.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#874DD1
RGBrgb(135, 77, 209)
HSLhsl(266, 59%, 56%)
HSVhsv(266, 63%, 82%)
CMYKcmyk(35.4%, 63.2%, 0%, 18%)
CIE-LABlab(45.72, 50.66, -59.31)
CIE-LCHlch(45.72, 78.00, 310.50°)
OKLaboklab(55.4% 0.0986 -0.1686)
OKLCHoklch(55.4% 0.195 300.3)
XYZxyz(24.1514, 15.0619, 61.9441)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD1 #97D14D
analogous
#4D55D1 #874DD1 #C94DD1
triadic
#874DD1 #D1874D #4DD187
tetradic
#874DD1 #D14D55 #97D14D #4DD1C9
square
#874DD1 #D14D55 #97D14D #4DD1C9
split-complementary
#874DD1 #D1C94D #55D14D
monochromatic
#4C2282 #682EB3 #874DD1 #A87EDE #C9AEEA

Accessibility & contrast

On white

5.23
#874DD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#874DD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD1
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD1#FFFFFF#000000##FFFFFF
##874DD11.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD5
Deuteranopia (green-blind)
#156BCE
Tritanopia (blue-blind)
#776A88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874dd1;
/* rgb */ color: rgb(135, 77, 209);
/* oklch */ color: oklch(55.4% 0.195 300.3);
Tailwind
colors: {
  custom: {
    50: '#af82e0',
    500: '#874dd1',
    950: '#000000',
  },
}
SCSS
$custom: #874dd1;
$custom-light: #af82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd1",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 209
  },
  "hsl": {
    "h": 266.364,
    "s": 58.929,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55397,
    "c": 0.19528,
    "h": 300.3
  },
  "luminance": 0.15062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #874DD1

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

Preview Lab → · Contrast checker → · Palette generator →

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