#874FD5#874FD5

#874FD5 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 56.0% C 0.197 H 299.1°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#874FD5
RGBrgb(135, 79, 213)
HSLhsl(265, 61%, 57%)
HSVhsv(265, 63%, 84%)
CMYKcmyk(36.6%, 62.9%, 0%, 16.5%)
CIE-LABlab(46.37, 50.63, -60.54)
CIE-LCHlch(46.37, 78.92, 309.90°)
OKLaboklab(55.96% 0.096 -0.1722)
OKLCHoklch(55.96% 0.197 299.1)
XYZxyz(24.7949, 15.5467, 64.6324)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FD5 #9DD54F
analogous
#4F5AD5 #874FD5 #CA4FD5
triadic
#874FD5 #D5874F #4FD587
tetradic
#874FD5 #D54F5A #9DD54F #4FD5CA
square
#874FD5 #D54F5A #9DD54F #4FD5CA
split-complementary
#874FD5 #D5CA4F #5AD54F
monochromatic
#4C2189 #682CBA #874FD5 #A980E1 #CAB2ED

Accessibility & contrast

On white

5.11
#874FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#874FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FD5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FD5#FFFFFF#000000##FFFFFF
##874FD51.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#0F6DD2
Tritanopia (blue-blind)
#756D8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874fd5;
/* rgb */ color: rgb(135, 79, 213);
/* oklch */ color: oklch(56.0% 0.197 299.1);
Tailwind
colors: {
  custom: {
    50: '#af83e3',
    500: '#874fd5',
    950: '#000000',
  },
}
SCSS
$custom: #874fd5;
$custom-light: #af83e3;
$custom-dark: #000000;
JSON
{
  "hex": "#874fd5",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 265.075,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55957,
    "c": 0.19716,
    "h": 299.1
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#874FD5
secondary
#C4DBA5
accent
#E543A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #874FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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