#874FD9#874FD9

#874FD9 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.2% C 0.202 H 298.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#874FD9
RGBrgb(135, 79, 217)
HSLhsl(264, 64%, 58%)
HSVhsv(264, 64%, 85%)
CMYKcmyk(37.8%, 63.6%, 0%, 14.9%)
CIE-LABlab(46.65, 51.64, -62.39)
CIE-LCHlch(46.65, 80.98, 309.62°)
OKLaboklab(56.24% 0.0957 -0.1776)
OKLCHoklch(56.24% 0.202 298.3)
XYZxyz(25.3089, 15.7523, 67.3393)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FD9 #A1D94F
analogous
#4F5CD9 #874FD9 #CC4FD9
triadic
#874FD9 #D9874F #4FD987
tetradic
#874FD9 #D94F5C #A1D94F #4FD9CC
square
#874FD9 #D94F5C #A1D94F #4FD9CC
split-complementary
#874FD9 #D9CC4F #5CD94F
monochromatic
#4C1F8F #672AC1 #874FD9 #A981E4 #CCB4EF

Accessibility & contrast

On white

5.06
#874FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#874FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FD9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FD9#FFFFFF#000000##FFFFFF
##874FD91.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#746E8D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874fd9;
/* rgb */ color: rgb(135, 79, 217);
/* oklch */ color: oklch(56.2% 0.202 298.3);
Tailwind
colors: {
  custom: {
    50: '#af83e6',
    500: '#874fd9',
    950: '#000000',
  },
}
SCSS
$custom: #874fd9;
$custom-light: #af83e6;
$custom-dark: #000000;
JSON
{
  "hex": "#874fd9",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 264.348,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56242,
    "c": 0.20176,
    "h": 298.3
  },
  "luminance": 0.15753
}

Semantic roles & 50–950 ramp

primary
#874FD9
secondary
#C7DDA6
accent
#E740A4
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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