#874BC7#874BC7

#874BC7 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.187 H 302.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#874BC7
RGBrgb(135, 75, 199)
HSLhsl(269, 53%, 54%)
HSVhsv(269, 62%, 78%)
CMYKcmyk(32.2%, 62.3%, 0%, 22%)
CIE-LABlab(44.67, 49.23, -55.24)
CIE-LCHlch(44.67, 73.99, 311.71°)
OKLaboklab(54.42% 0.1015 -0.1566)
OKLCHoklch(54.42% 0.187 302.9)
XYZxyz(22.8142, 14.3066, 55.5813)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BC7 #8BC74B
analogous
#4B4DC7 #874BC7 #C54BC7
triadic
#874BC7 #C7874B #4BC787
tetradic
#874BC7 #C74B4D #8BC74B #4BC7C5
square
#874BC7 #C74B4D #8BC74B #4BC7C5
split-complementary
#874BC7 #C7C54B #4DC74B
monochromatic
#4B2474 #6932A2 #874BC7 #A67AD6 #C5A8E4

Accessibility & contrast

On white

5.44
#874BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#874BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BC7
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BC7#FFFFFF#000000##FFFFFF
##874BC71.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#7B6582
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874bc7;
/* rgb */ color: rgb(135, 75, 199);
/* oklch */ color: oklch(54.4% 0.187 302.9);
Tailwind
colors: {
  custom: {
    50: '#ae80d9',
    500: '#874bc7',
    950: '#000000',
  },
}
SCSS
$custom: #874bc7;
$custom-light: #ae80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874bc7",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 269.032,
    "s": 52.542,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54424,
    "c": 0.18664,
    "h": 302.9
  },
  "luminance": 0.14307
}

Semantic roles & 50–950 ramp

primary
#874BC7
secondary
#B8D19C
accent
#DC4C96
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A15
muted
#807C83

Preview Lab

Preview with #874BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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