#874FD8#874FD8

#874FD8 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.201 H 298.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#874FD8
RGBrgb(135, 79, 216)
HSLhsl(265, 64%, 58%)
HSVhsv(265, 63%, 85%)
CMYKcmyk(37.5%, 63.4%, 0%, 15.3%)
CIE-LABlab(46.58, 51.39, -61.93)
CIE-LCHlch(46.58, 80.47, 309.69°)
OKLaboklab(56.17% 0.0958 -0.1763)
OKLCHoklch(56.17% 0.201 298.5)
XYZxyz(25.1792, 15.7004, 66.6563)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FD8 #A0D84F
analogous
#4F5BD8 #874FD8 #CC4FD8
triadic
#874FD8 #D8874F #4FD887
tetradic
#874FD8 #D84F5B #A0D84F #4FD8CC
square
#874FD8 #D84F5B #A0D84F #4FD8CC
split-complementary
#874FD8 #D8CC4F #5BD84F
monochromatic
#4C1F8D #672ABF #874FD8 #A981E3 #CBB3EE

Accessibility & contrast

On white

5.07
#874FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#874FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FD8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FD8#FFFFFF#000000##FFFFFF
##874FD81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#006DD5
Tritanopia (blue-blind)
#746E8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874fd8;
/* rgb */ color: rgb(135, 79, 216);
/* oklch */ color: oklch(56.2% 0.201 298.5);
Tailwind
colors: {
  custom: {
    50: '#af83e5',
    500: '#874fd8',
    950: '#000000',
  },
}
SCSS
$custom: #874fd8;
$custom-light: #af83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#874fd8",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 264.526,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5617,
    "c": 0.20062,
    "h": 298.5
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#874FD8
secondary
#C6DDA6
accent
#E741A3
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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