#874DDC#874DDC

#874DDC is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.208 H 298.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#874DDC
RGBrgb(135, 77, 220)
HSLhsl(264, 67%, 58%)
HSVhsv(264, 65%, 86%)
CMYKcmyk(38.6%, 65%, 0%, 13.7%)
CIE-LABlab(46.48, 53.43, -64.37)
CIE-LCHlch(46.48, 83.65, 309.69°)
OKLaboklab(56.19% 0.0976 -0.1835)
OKLCHoklch(56.19% 0.208 298)
XYZxyz(25.5605, 15.6256, 69.3656)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DDC #A2DC4D
analogous
#4D5ADC #874DDC #CF4DDC
triadic
#874DDC #DC874D #4DDC87
tetradic
#874DDC #DC4D5A #A2DC4D #4DDCCF
square
#874DDC #DC4D5A #A2DC4D #4DDCCF
split-complementary
#874DDC #DCCF4D #5ADC4D
monochromatic
#4C1D92 #6727C5 #874DDC #A980E6 #CCB3F0

Accessibility & contrast

On white

5.09
#874DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#874DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DDC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DDC#FFFFFF#000000##FFFFFF
##874DDC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#736E8E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874ddc;
/* rgb */ color: rgb(135, 77, 220);
/* oklch */ color: oklch(56.2% 0.208 298.0);
Tailwind
colors: {
  custom: {
    50: '#b082e8',
    500: '#874ddc',
    950: '#000000',
  },
}
SCSS
$custom: #874ddc;
$custom-light: #b082e8;
$custom-dark: #000000;
JSON
{
  "hex": "#874ddc",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 220
  },
  "hsl": {
    "h": 264.336,
    "s": 67.136,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56186,
    "c": 0.20778,
    "h": 298
  },
  "luminance": 0.15626
}

Semantic roles & 50–950 ramp

primary
#874DDC
secondary
#C8DFA6
accent
#EA3EA4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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