#874CA5#874CA5

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

Color values

HEX#874CA5
RGBrgb(135, 76, 165)
HSLhsl(280, 37%, 47%)
HSVhsv(280, 54%, 65%)
CMYKcmyk(18.2%, 53.9%, 0%, 35.3%)
CIE-LABlab(42.82, 40.69, -38.26)
CIE-LCHlch(42.82, 55.86, 316.76°)
OKLaboklab(52.41% 0.0998 -0.1069)
OKLCHoklch(52.41% 0.146 313)
XYZxyz(19.3665, 13.0369, 37.0862)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CA5 #6AA54C
analogous
#5B4CA5 #874CA5 #A54C97
triadic
#874CA5 #A5874C #4CA587
tetradic
#874CA5 #A55B4C #6AA54C #4C97A5
square
#874CA5 #A55B4C #6AA54C #4C97A5
split-complementary
#874CA5 #97A54C #4CA55B
monochromatic
#422551 #65397B #874CA5 #A471BD #BF9BD1

Accessibility & contrast

On white

5.82
#874CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#874CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CA5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CA5#FFFFFF#000000##FFFFFF
##874CA51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#4867A3
Tritanopia (blue-blind)
#845B71
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #874ca5;
/* rgb */ color: rgb(135, 76, 165);
/* oklch */ color: oklch(52.4% 0.146 313.0);
Tailwind
colors: {
  custom: {
    50: '#ac80c0',
    500: '#874ca5',
    950: '#000000',
  },
}
SCSS
$custom: #874ca5;
$custom-light: #ac80c0;
$custom-dark: #000000;
JSON
{
  "hex": "#874ca5",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 279.775,
    "s": 36.929,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52412,
    "c": 0.14625,
    "h": 313
  },
  "luminance": 0.13036
}

Semantic roles & 50–950 ramp

primary
#874CA5
secondary
#9FBD8F
accent
#CD5B81
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #874CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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