#874EBD#874EBD

#874EBD is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.171 H 305.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#874EBD
RGBrgb(135, 78, 189)
HSLhsl(271, 46%, 52%)
HSVhsv(271, 59%, 74%)
CMYKcmyk(28.6%, 58.7%, 0%, 25.9%)
CIE-LABlab(44.62, 45.22, -49.51)
CIE-LCHlch(44.62, 67.05, 312.41°)
OKLaboklab(54.19% 0.0981 -0.1398)
OKLCHoklch(54.19% 0.171 305.1)
XYZxyz(21.8994, 14.2739, 49.7357)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EBD #84BD4E
analogous
#504EBD #874EBD #BD4EBB
triadic
#874EBD #BD874E #4EBD87
tetradic
#874EBD #BD504E #84BD4E #4EBBBD
square
#874EBD #BD504E #84BD4E #4EBBBD
split-complementary
#874EBD #BBBD4E #4EBD50
monochromatic
#492769 #683896 #874EBD #A57BCE #C3A7DE

Accessibility & contrast

On white

5.45
#874EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#874EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EBD
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EBD#FFFFFF#000000##FFFFFF
##874EBD1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E68C1
Deuteranopia (green-blind)
#376ABA
Tritanopia (blue-blind)
#7E647E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874ebd;
/* rgb */ color: rgb(135, 78, 189);
/* oklch */ color: oklch(54.2% 0.171 305.1);
Tailwind
colors: {
  custom: {
    50: '#ad82d1',
    500: '#874ebd',
    950: '#000000',
  },
}
SCSS
$custom: #874ebd;
$custom-light: #ad82d1;
$custom-dark: #000000;
JSON
{
  "hex": "#874ebd",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 270.811,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54187,
    "c": 0.1708,
    "h": 305.1
  },
  "luminance": 0.14274
}

Semantic roles & 50–950 ramp

primary
#874EBD
secondary
#B3CC9B
accent
#D55292
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #874EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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