#874DC0#874DC0

#874DC0 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.176 H 304.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#874DC0
RGBrgb(135, 77, 192)
HSLhsl(270, 48%, 53%)
HSVhsv(270, 60%, 75%)
CMYKcmyk(29.7%, 59.9%, 0%, 24.7%)
CIE-LABlab(44.61, 46.48, -51.27)
CIE-LCHlch(44.61, 69.20, 312.19°)
OKLaboklab(54.24% 0.0993 -0.145)
OKLCHoklch(54.24% 0.176 304.4)
XYZxyz(22.1579, 14.2645, 51.4450)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DC0 #86C04D
analogous
#4D4DC0 #874DC0 #C04DBF
triadic
#874DC0 #C0874D #4DC087
tetradic
#874DC0 #C04D4D #86C04D #4DBFC0
square
#874DC0 #C04D4D #86C04D #4DBFC0
split-complementary
#874DC0 #BFC04D #4DC04D
monochromatic
#4A266C #683699 #874DC0 #A57AD0 #C4A7E0

Accessibility & contrast

On white

5.45
#874DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#874DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DC0
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DC0#FFFFFF#000000##FFFFFF
##874DC01.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1468C4
Deuteranopia (green-blind)
#336ABD
Tritanopia (blue-blind)
#7D647F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874dc0;
/* rgb */ color: rgb(135, 77, 192);
/* oklch */ color: oklch(54.2% 0.176 304.4);
Tailwind
colors: {
  custom: {
    50: '#ae81d4',
    500: '#874dc0',
    950: '#000000',
  },
}
SCSS
$custom: #874dc0;
$custom-light: #ae81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#874dc0",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 192
  },
  "hsl": {
    "h": 270.261,
    "s": 47.718,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54237,
    "c": 0.17575,
    "h": 304.4
  },
  "luminance": 0.14264
}

Semantic roles & 50–950 ramp

primary
#874DC0
secondary
#B4CD9B
accent
#D75093
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #874DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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