#874EC9#874EC9

#874EC9 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.185 H 302.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#874EC9
RGBrgb(135, 78, 201)
HSLhsl(268, 53%, 55%)
HSVhsv(268, 61%, 79%)
CMYKcmyk(32.8%, 61.2%, 0%, 21.2%)
CIE-LABlab(45.38, 48.15, -55.25)
CIE-LCHlch(45.38, 73.29, 311.08°)
OKLaboklab(54.98% 0.0979 -0.1567)
OKLCHoklch(54.98% 0.185 302)
XYZxyz(23.2562, 14.8167, 56.8817)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EC9 #90C94E
analogous
#4E52C9 #874EC9 #C54EC9
triadic
#874EC9 #C9874E #4EC987
tetradic
#874EC9 #C94E52 #90C94E #4EC9C5
square
#874EC9 #C94E52 #90C94E #4EC9C5
split-complementary
#874EC9 #C9C54E #52C94E
monochromatic
#4B2578 #6933A7 #874EC9 #A77DD7 #C7ACE6

Accessibility & contrast

On white

5.30
#874EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#874EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EC9
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EC9#FFFFFF#000000##FFFFFF
##874EC91.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCD
Deuteranopia (green-blind)
#286BC6
Tritanopia (blue-blind)
#7A6884
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ec9;
/* rgb */ color: rgb(135, 78, 201);
/* oklch */ color: oklch(55.0% 0.185 302.0);
Tailwind
colors: {
  custom: {
    50: '#ae82da',
    500: '#874ec9',
    950: '#000000',
  },
}
SCSS
$custom: #874ec9;
$custom-light: #ae82da;
$custom-dark: #000000;
JSON
{
  "hex": "#874ec9",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 201
  },
  "hsl": {
    "h": 267.805,
    "s": 53.247,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54983,
    "c": 0.1847,
    "h": 302
  },
  "luminance": 0.14817
}

Semantic roles & 50–950 ramp

primary
#874EC9
secondary
#BBD39F
accent
#DD4B99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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