#874CE5#874CE5

#874CE5 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.7% C 0.219 H 296.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#874CE5
RGBrgb(135, 76, 229)
HSLhsl(263, 75%, 60%)
HSVhsv(263, 67%, 90%)
CMYKcmyk(41%, 66.8%, 0%, 10.2%)
CIE-LABlab(46.94, 56.22, -68.72)
CIE-LCHlch(46.94, 88.79, 309.28°)
OKLaboklab(56.72% 0.0975 -0.1963)
OKLCHoklch(56.72% 0.219 296.4)
XYZxyz(26.7153, 15.9764, 75.7898)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CE5 #AAE54C
analogous
#4C5EE5 #874CE5 #D34CE5
triadic
#874CE5 #E5874C #4CE587
tetradic
#874CE5 #E54C5E #AAE54C #4CE5D3
square
#874CE5 #E54C5E #AAE54C #4CE5D3
split-complementary
#874CE5 #E5D34C #5EE54C
monochromatic
#4C179F #651FD5 #874CE5 #AB81ED #CFB7F5

Accessibility & contrast

On white

5.01
#874CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#874CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CE5
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CE5#FFFFFF#000000##FFFFFF
##874CE51.005.014.205.01
#FFFFFF5.011.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#006DE2
Tritanopia (blue-blind)
#6F7192
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874ce5;
/* rgb */ color: rgb(135, 76, 229);
/* oklch */ color: oklch(56.7% 0.219 296.4);
Tailwind
colors: {
  custom: {
    50: '#b182ee',
    500: '#874ce5',
    950: '#000000',
  },
}
SCSS
$custom: #874ce5;
$custom-light: #b182ee;
$custom-dark: #000000;
JSON
{
  "hex": "#874ce5",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 229
  },
  "hsl": {
    "h": 263.137,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.21914,
    "h": 296.4
  },
  "luminance": 0.15977
}

Semantic roles & 50–950 ramp

primary
#874CE5
secondary
#CDE4A9
accent
#F137A9
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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