#874EC8#874EC8

#874EC8 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.184 H 302.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#874EC8
RGBrgb(135, 78, 200)
HSLhsl(268, 53%, 55%)
HSVhsv(268, 61%, 78%)
CMYKcmyk(32.5%, 61%, 0%, 21.6%)
CIE-LABlab(45.32, 47.91, -54.77)
CIE-LCHlch(45.32, 72.77, 311.17°)
OKLaboklab(54.92% 0.0979 -0.1553)
OKLCHoklch(54.92% 0.184 302.2)
XYZxyz(23.1390, 14.7698, 56.2642)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EC8 #8FC84E
analogous
#4E52C8 #874EC8 #C44EC8
triadic
#874EC8 #C8874E #4EC887
tetradic
#874EC8 #C84E52 #8FC84E #4EC8C4
square
#874EC8 #C84E52 #8FC84E #4EC8C4
split-complementary
#874EC8 #C8C44E #52C84E
monochromatic
#4B2577 #6933A5 #874EC8 #A77DD7 #C6ABE5

Accessibility & contrast

On white

5.31
#874EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#874EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EC8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EC8#FFFFFF#000000##FFFFFF
##874EC81.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#2A6BC5
Tritanopia (blue-blind)
#7A6884
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ec8;
/* rgb */ color: rgb(135, 78, 200);
/* oklch */ color: oklch(54.9% 0.184 302.2);
Tailwind
colors: {
  custom: {
    50: '#ae82d9',
    500: '#874ec8',
    950: '#000000',
  },
}
SCSS
$custom: #874ec8;
$custom-light: #ae82d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874ec8",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 200
  },
  "hsl": {
    "h": 268.033,
    "s": 52.586,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54916,
    "c": 0.18355,
    "h": 302.2
  },
  "luminance": 0.1477
}

Semantic roles & 50–950 ramp

primary
#874EC8
secondary
#BBD39F
accent
#DC4C99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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