#874BBE#874BBE

#874BBE is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.176 H 305.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#874BBE
RGBrgb(135, 75, 190)
HSLhsl(271, 47%, 52%)
HSVhsv(271, 61%, 75%)
CMYKcmyk(28.9%, 60.5%, 0%, 25.5%)
CIE-LABlab(44.09, 47.05, -50.94)
CIE-LCHlch(44.09, 69.35, 312.73°)
OKLaboklab(53.82% 0.1019 -0.144)
OKLCHoklch(53.82% 0.176 305.3)
XYZxyz(21.8000, 13.9009, 50.2399)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BBE #82BE4B
analogous
#4D4BBE #874BBE #BE4BBC
triadic
#874BBE #BE874B #4BBE87
tetradic
#874BBE #BE4D4B #82BE4B #4BBCBE
square
#874BBE #BE4D4B #82BE4B #4BBCBE
split-complementary
#874BBE #BCBE4B #4BBE4D
monochromatic
#492669 #683696 #874BBE #A578CE #C3A5DE

Accessibility & contrast

On white

5.56
#874BBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#874BBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BBE
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BBE#FFFFFF#000000##FFFFFF
##874BBE1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1166C2
Deuteranopia (green-blind)
#3268BB
Tritanopia (blue-blind)
#7D627D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #874bbe;
/* rgb */ color: rgb(135, 75, 190);
/* oklch */ color: oklch(53.8% 0.176 305.3);
Tailwind
colors: {
  custom: {
    50: '#ae80d2',
    500: '#874bbe',
    950: '#000000',
  },
}
SCSS
$custom: #874bbe;
$custom-light: #ae80d2;
$custom-dark: #000000;
JSON
{
  "hex": "#874bbe",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 190
  },
  "hsl": {
    "h": 271.304,
    "s": 46.939,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53819,
    "c": 0.17638,
    "h": 305.3
  },
  "luminance": 0.13901
}

Semantic roles & 50–950 ramp

primary
#874BBE
secondary
#B1CC99
accent
#D75191
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #874BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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