#874CD8#874CD8

#874CD8 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.8% C 0.205 H 299.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#874CD8
RGBrgb(135, 76, 216)
HSLhsl(265, 64%, 57%)
HSVhsv(265, 65%, 85%)
CMYKcmyk(37.5%, 64.8%, 0%, 15.3%)
CIE-LABlab(46.01, 52.93, -62.84)
CIE-LCHlch(46.01, 82.16, 310.11°)
OKLaboklab(55.76% 0.099 -0.179)
OKLCHoklch(55.76% 0.205 299)
XYZxyz(24.9677, 15.2774, 66.5858)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD8 #9DD84C
analogous
#4C57D8 #874CD8 #CD4CD8
triadic
#874CD8 #D8874C #4CD887
tetradic
#874CD8 #D84C57 #9DD84C #4CD8CD
square
#874CD8 #D84C57 #9DD84C #4CD8CD
split-complementary
#874CD8 #D8CD4C #57D84C
monochromatic
#4C1E8B #6829BE #874CD8 #A97EE3 #CAB1EE

Accessibility & contrast

On white

5.18
#874CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#874CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD8#FFFFFF#000000##FFFFFF
##874CD81.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006CD5
Tritanopia (blue-blind)
#746C8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874cd8;
/* rgb */ color: rgb(135, 76, 216);
/* oklch */ color: oklch(55.8% 0.205 299.0);
Tailwind
colors: {
  custom: {
    50: '#b081e5',
    500: '#874cd8',
    950: '#000000',
  },
}
SCSS
$custom: #874cd8;
$custom-light: #b081e5;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd8",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 265.286,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55761,
    "c": 0.20456,
    "h": 299
  },
  "luminance": 0.15278
}

Semantic roles & 50–950 ramp

primary
#874CD8
secondary
#C4DCA4
accent
#E741A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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