#874AC7#874AC7

#874AC7 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.3% C 0.188 H 303.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#874AC7
RGBrgb(135, 74, 199)
HSLhsl(269, 53%, 54%)
HSVhsv(269, 63%, 78%)
CMYKcmyk(32.2%, 62.8%, 0%, 22%)
CIE-LABlab(44.48, 49.75, -55.55)
CIE-LCHlch(44.48, 74.57, 311.85°)
OKLaboklab(54.29% 0.1027 -0.1575)
OKLCHoklch(54.29% 0.188 303.1)
XYZxyz(22.7469, 14.1720, 55.5589)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874AC7 #8AC74A
analogous
#4A4BC7 #874AC7 #C54AC7
triadic
#874AC7 #C7874A #4AC787
tetradic
#874AC7 #C74A4B #8AC74A #4AC7C5
square
#874AC7 #C74A4B #8AC74A #4AC7C5
split-complementary
#874AC7 #C7C54A #4BC74A
monochromatic
#4A2473 #6932A2 #874AC7 #A679D5 #C5A7E4

Accessibility & contrast

On white

5.48
#874AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#874AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874AC7
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874AC7#FFFFFF#000000##FFFFFF
##874AC71.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#2469C4
Tritanopia (blue-blind)
#7B6582
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874ac7;
/* rgb */ color: rgb(135, 74, 199);
/* oklch */ color: oklch(54.3% 0.188 303.1);
Tailwind
colors: {
  custom: {
    50: '#ae80d9',
    500: '#874ac7',
    950: '#000000',
  },
}
SCSS
$custom: #874ac7;
$custom-light: #ae80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874ac7",
  "rgb": {
    "r": 135,
    "g": 74,
    "b": 199
  },
  "hsl": {
    "h": 269.28,
    "s": 52.743,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54286,
    "c": 0.18804,
    "h": 303.1
  },
  "luminance": 0.14172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #874AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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