#874BCB#874BCB

#874BCB is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.7% C 0.191 H 302.0°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#874BCB
RGBrgb(135, 75, 203)
HSLhsl(268, 55%, 55%)
HSVhsv(268, 63%, 80%)
CMYKcmyk(33.5%, 63.1%, 0%, 20.4%)
CIE-LABlab(44.93, 50.21, -57.12)
CIE-LCHlch(44.93, 76.05, 311.32°)
OKLaboklab(54.7% 0.1013 -0.1621)
OKLCHoklch(54.7% 0.191 302)
XYZxyz(23.2847, 14.4948, 58.0594)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BCB #8FCB4B
analogous
#4B4FCB #874BCB #C74BCB
triadic
#874BCB #CB874B #4BCB87
tetradic
#874BCB #CB4B4F #8FCB4B #4BCBC7
square
#874BCB #CB4B4F #8FCB4B #4BCBC7
split-complementary
#874BCB #CBC74B #4FCB4B
monochromatic
#4B2379 #6931A8 #874BCB #A77AD9 #C6AAE6

Accessibility & contrast

On white

5.39
#874BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#874BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BCB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BCB#FFFFFF#000000##FFFFFF
##874BCB1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#1F6AC8
Tritanopia (blue-blind)
#796784
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874bcb;
/* rgb */ color: rgb(135, 75, 203);
/* oklch */ color: oklch(54.7% 0.191 302.0);
Tailwind
colors: {
  custom: {
    50: '#ae81dc',
    500: '#874bcb',
    950: '#000000',
  },
}
SCSS
$custom: #874bcb;
$custom-light: #ae81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#874bcb",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 268.125,
    "s": 55.172,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54701,
    "c": 0.19118,
    "h": 302
  },
  "luminance": 0.14495
}

Semantic roles & 50–950 ramp

primary
#874BCB
secondary
#BBD49E
accent
#DF4999
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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