#874DD8#874DD8

#874DD8 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.9% C 0.203 H 298.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#874DD8
RGBrgb(135, 77, 216)
HSLhsl(265, 64%, 57%)
HSVhsv(265, 64%, 85%)
CMYKcmyk(37.5%, 64.4%, 0%, 15.3%)
CIE-LABlab(46.20, 52.42, -62.54)
CIE-LCHlch(46.20, 81.60, 309.97°)
OKLaboklab(55.9% 0.098 -0.1781)
OKLCHoklch(55.9% 0.203 298.8)
XYZxyz(25.0371, 15.4162, 66.6090)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD8 #9ED84D
analogous
#4D59D8 #874DD8 #CC4DD8
triadic
#874DD8 #D8874D #4DD887
tetradic
#874DD8 #D84D59 #9ED84D #4DD8CC
square
#874DD8 #D84D59 #9ED84D #4DD8CC
split-complementary
#874DD8 #D8CC4D #59D84D
monochromatic
#4C1F8C #682ABE #874DD8 #A97FE3 #CBB1EE

Accessibility & contrast

On white

5.14
#874DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#874DD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD8#FFFFFF#000000##FFFFFF
##874DD81.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #874dd8;
/* rgb */ color: rgb(135, 77, 216);
/* oklch */ color: oklch(55.9% 0.203 298.8);
Tailwind
colors: {
  custom: {
    50: '#af82e5',
    500: '#874dd8',
    950: '#000000',
  },
}
SCSS
$custom: #874dd8;
$custom-light: #af82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd8",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 216
  },
  "hsl": {
    "h": 265.036,
    "s": 64.055,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55896,
    "c": 0.20325,
    "h": 298.8
  },
  "luminance": 0.15417
}

Semantic roles & 50–950 ramp

primary
#874DD8
secondary
#C5DCA4
accent
#E741A2
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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