#874BB2#874BB2

#874BB2 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.0% C 0.163 H 308.8°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#874BB2
RGBrgb(135, 75, 178)
HSLhsl(275, 41%, 50%)
HSVhsv(275, 58%, 70%)
CMYKcmyk(24.2%, 57.9%, 0%, 30.2%)
CIE-LABlab(43.36, 44.21, -45.09)
CIE-LCHlch(43.36, 63.15, 314.43°)
OKLaboklab(53.05% 0.1019 -0.1268)
OKLCHoklch(53.05% 0.163 308.8)
XYZxyz(20.5420, 13.3977, 43.6147)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BB2 #76B24B
analogous
#534BB2 #874BB2 #B24BAA
triadic
#874BB2 #B2874B #4BB287
tetradic
#874BB2 #B2534B #76B24B #4BAAB2
square
#874BB2 #B2534B #76B24B #4BAAB2
split-complementary
#874BB2 #AAB24B #4BB253
monochromatic
#46275C #663987 #874BB2 #A475C5 #C0A0D7

Accessibility & contrast

On white

5.71
#874BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#874BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BB2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BB2#FFFFFF#000000##FFFFFF
##874BB21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#3E67B0
Tritanopia (blue-blind)
#815E77
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #874bb2;
/* rgb */ color: rgb(135, 75, 178);
/* oklch */ color: oklch(53.0% 0.163 308.8);
Tailwind
colors: {
  custom: {
    50: '#ad80c9',
    500: '#874bb2',
    950: '#000000',
  },
}
SCSS
$custom: #874bb2;
$custom-light: #ad80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#874bb2",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 274.951,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53047,
    "c": 0.16268,
    "h": 308.8
  },
  "luminance": 0.13397
}

Semantic roles & 50–950 ramp

primary
#874BB2
secondary
#A9C495
accent
#D1578A
background
#FAF7FC
surface
#F5EEF8
border
#CFC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #874BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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