#874BB5#874BB5

#874BB5 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.2% C 0.166 H 307.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#874BB5
RGBrgb(135, 75, 181)
HSLhsl(274, 42%, 50%)
HSVhsv(274, 59%, 71%)
CMYKcmyk(25.4%, 58.6%, 0%, 29%)
CIE-LABlab(43.54, 44.91, -46.57)
CIE-LCHlch(43.54, 64.70, 313.96°)
OKLaboklab(53.24% 0.1019 -0.1312)
OKLCHoklch(53.24% 0.166 307.8)
XYZxyz(20.8466, 13.5195, 45.2184)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BB5 #79B54B
analogous
#524BB5 #874BB5 #B54BAE
triadic
#874BB5 #B5874B #4BB587
tetradic
#874BB5 #B5524B #79B54B #4BAEB5
square
#874BB5 #B5524B #79B54B #4BAEB5
split-complementary
#874BB5 #AEB54B #4BB552
monochromatic
#46275F #67398A #874BB5 #A476C7 #C1A2D9

Accessibility & contrast

On white

5.67
#874BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#874BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BB5
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BB5#FFFFFF#000000##FFFFFF
##874BB51.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2265B8
Deuteranopia (green-blind)
#3B68B2
Tritanopia (blue-blind)
#805F79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #874bb5;
/* rgb */ color: rgb(135, 75, 181);
/* oklch */ color: oklch(53.2% 0.166 307.8);
Tailwind
colors: {
  custom: {
    50: '#ad80cc',
    500: '#874bb5',
    950: '#000000',
  },
}
SCSS
$custom: #874bb5;
$custom-light: #ad80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#874bb5",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 181
  },
  "hsl": {
    "h": 273.962,
    "s": 41.732,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53236,
    "c": 0.16611,
    "h": 307.8
  },
  "luminance": 0.13519
}

Semantic roles & 50–950 ramp

primary
#874BB5
secondary
#ABC696
accent
#D2568C
background
#FAF7FC
surface
#F5EEF9
border
#CFC9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #874BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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