#874CC9#874CC9

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

Color values

HEX#874CC9
RGBrgb(135, 76, 201)
HSLhsl(268, 54%, 54%)
HSVhsv(268, 62%, 79%)
CMYKcmyk(32.8%, 62.2%, 0%, 21.2%)
CIE-LABlab(44.99, 49.20, -55.87)
CIE-LCHlch(44.99, 74.45, 311.37°)
OKLaboklab(54.7% 0.1002 -0.1585)
OKLCHoklch(54.7% 0.188 302.3)
XYZxyz(23.1163, 14.5368, 56.8351)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CC9 #8EC94C
analogous
#4C50C9 #874CC9 #C64CC9
triadic
#874CC9 #C9874C #4CC987
tetradic
#874CC9 #C94C50 #8EC94C #4CC9C6
square
#874CC9 #C94C50 #8EC94C #4CC9C6
split-complementary
#874CC9 #C9C64C #50C94C
monochromatic
#4B2477 #6932A6 #874CC9 #A77BD7 #C6AAE5

Accessibility & contrast

On white

5.37
#874CC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#874CC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CC9
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CC9#FFFFFF#000000##FFFFFF
##874CC91.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#246AC6
Tritanopia (blue-blind)
#7A6783
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874cc9;
/* rgb */ color: rgb(135, 76, 201);
/* oklch */ color: oklch(54.7% 0.188 302.3);
Tailwind
colors: {
  custom: {
    50: '#ae81da',
    500: '#874cc9',
    950: '#000000',
  },
}
SCSS
$custom: #874cc9;
$custom-light: #ae81da;
$custom-dark: #000000;
JSON
{
  "hex": "#874cc9",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 201
  },
  "hsl": {
    "h": 268.32,
    "s": 53.648,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54701,
    "c": 0.18752,
    "h": 302.3
  },
  "luminance": 0.14537
}

Semantic roles & 50–950 ramp

primary
#874CC9
secondary
#BAD39E
accent
#DD4B98
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874CC9

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

Preview Lab → · Contrast checker → · Palette generator →

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