#874CE6#874CE6

#874CE6 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.220 H 296.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#874CE6
RGBrgb(135, 76, 230)
HSLhsl(263, 75%, 60%)
HSVhsv(263, 67%, 90%)
CMYKcmyk(41.3%, 67%, 0%, 9.8%)
CIE-LABlab(47.02, 56.47, -69.17)
CIE-LCHlch(47.02, 89.29, 309.23°)
OKLaboklab(56.8% 0.0973 -0.1976)
OKLCHoklch(56.8% 0.22 296.2)
XYZxyz(26.8553, 16.0324, 76.5272)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CE6 #ABE64C
analogous
#4C5EE6 #874CE6 #D44CE6
triadic
#874CE6 #E6874C #4CE687
tetradic
#874CE6 #E64C5E #ABE64C #4CE6D4
square
#874CE6 #E64C5E #ABE64C #4CE6D4
split-complementary
#874CE6 #E6D44C #5EE64C
monochromatic
#4C17A1 #651ED7 #874CE6 #AB82ED #CFB7F5

Accessibility & contrast

On white

4.99
#874CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#874CE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CE6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CE6#FFFFFF#000000##FFFFFF
##874CE61.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EB
Deuteranopia (green-blind)
#006DE3
Tritanopia (blue-blind)
#6E7193
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874ce6;
/* rgb */ color: rgb(135, 76, 230);
/* oklch */ color: oklch(56.8% 0.220 296.2);
Tailwind
colors: {
  custom: {
    50: '#b182ef',
    500: '#874ce6',
    950: '#000000',
  },
}
SCSS
$custom: #874ce6;
$custom-light: #b182ef;
$custom-dark: #000000;
JSON
{
  "hex": "#874ce6",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 230
  },
  "hsl": {
    "h": 262.987,
    "s": 75.49,
    "l": 60
  },
  "oklch": {
    "l": 0.56799,
    "c": 0.22026,
    "h": 296.2
  },
  "luminance": 0.16033
}

Semantic roles & 50–950 ramp

primary
#874CE6
secondary
#CEE5A9
accent
#F236AA
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #874CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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