#874AAA#874AAA

#874AAA is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.4% C 0.155 H 311.5°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#874AAA
RGBrgb(135, 74, 170)
HSLhsl(278, 39%, 48%)
HSVhsv(278, 56%, 67%)
CMYKcmyk(20.6%, 56.5%, 0%, 33.3%)
CIE-LABlab(42.69, 42.90, -41.43)
CIE-LCHlch(42.69, 59.64, 316.00°)
OKLaboklab(52.41% 0.1029 -0.1161)
OKLCHoklch(52.41% 0.155 311.5)
XYZxyz(19.6948, 12.9512, 39.4847)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874AAA #6DAA4A
analogous
#574AAA #874AAA #AA4A9D
triadic
#874AAA #AA874A #4AAA87
tetradic
#874AAA #AA574A #6DAA4A #4A9DAA
square
#874AAA #AA574A #6DAA4A #4A9DAA
split-complementary
#874AAA #9DAA4A #4AAA57
monochromatic
#432555 #65377F #874AAA #A470C1 #BF9BD3

Accessibility & contrast

On white

5.85
#874AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#874AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874AAA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874AAA#FFFFFF#000000##FFFFFF
##874AAA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D62AD
Deuteranopia (green-blind)
#4366A8
Tritanopia (blue-blind)
#835B73
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #874aaa;
/* rgb */ color: rgb(135, 74, 170);
/* oklch */ color: oklch(52.4% 0.155 311.5);
Tailwind
colors: {
  custom: {
    50: '#ac7fc4',
    500: '#874aaa',
    950: '#000000',
  },
}
SCSS
$custom: #874aaa;
$custom-light: #ac7fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#874aaa",
  "rgb": {
    "r": 135,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 278.125,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52408,
    "c": 0.15516,
    "h": 311.5
  },
  "luminance": 0.12951
}

Semantic roles & 50–950 ramp

primary
#874AAA
secondary
#A1C090
accent
#CF5984
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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