#874CE2#874CE2

#874CE2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.5% C 0.216 H 297.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#874CE2
RGBrgb(135, 76, 226)
HSLhsl(264, 72%, 59%)
HSVhsv(264, 66%, 89%)
CMYKcmyk(40.3%, 66.4%, 0%, 11.4%)
CIE-LABlab(46.72, 55.45, -67.38)
CIE-LCHlch(46.72, 87.27, 309.45°)
OKLaboklab(56.5% 0.0979 -0.1923)
OKLCHoklch(56.5% 0.216 297)
XYZxyz(26.3000, 15.8103, 73.6028)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CE2 #A7E24C
analogous
#4C5CE2 #874CE2 #D24CE2
triadic
#874CE2 #E2874C #4CE287
tetradic
#874CE2 #E24C5C #A7E24C #4CE2D2
square
#874CE2 #E24C5C #A7E24C #4CE2D2
split-complementary
#874CE2 #E2D24C #5CE24C
monochromatic
#4C199B #6622CF #874CE2 #AA81EB #CEB5F3

Accessibility & contrast

On white

5.05
#874CE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#874CE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CE2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CE2#FFFFFF#000000##FFFFFF
##874CE21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#707091
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874ce2;
/* rgb */ color: rgb(135, 76, 226);
/* oklch */ color: oklch(56.5% 0.216 297.0);
Tailwind
colors: {
  custom: {
    50: '#b082ec',
    500: '#874ce2',
    950: '#000000',
  },
}
SCSS
$custom: #874ce2;
$custom-light: #b082ec;
$custom-dark: #000000;
JSON
{
  "hex": "#874ce2",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 226
  },
  "hsl": {
    "h": 263.6,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56498,
    "c": 0.21579,
    "h": 297
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#874CE2
secondary
#CBE2A8
accent
#EF39A7
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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