#874AE7#874AE7

#874AE7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.6% C 0.224 H 296.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#874AE7
RGBrgb(135, 74, 231)
HSLhsl(263, 77%, 60%)
HSVhsv(263, 68%, 91%)
CMYKcmyk(41.6%, 68%, 0%, 9.4%)
CIE-LABlab(46.73, 57.71, -70.20)
CIE-LCHlch(46.73, 90.87, 309.43°)
OKLaboklab(56.62% 0.0992 -0.2006)
OKLCHoklch(56.62% 0.224 296.3)
XYZxyz(26.8605, 15.8174, 77.2237)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874AE7 #AAE74A
analogous
#4A5CE7 #874AE7 #D54AE7
triadic
#874AE7 #E7874A #4AE787
tetradic
#874AE7 #E74A5C #AAE74A #4AE7D5
square
#874AE7 #E74A5C #AAE74A #4AE7D5
split-complementary
#874AE7 #E7D54A #5CE74A
monochromatic
#4C15A1 #651DD7 #874AE7 #AB80EE #CFB6F5

Accessibility & contrast

On white

5.04
#874AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #874AE7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874AE7#FFFFFF#000000##FFFFFF
##874AE71.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#6E7093
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874ae7;
/* rgb */ color: rgb(135, 74, 231);
/* oklch */ color: oklch(56.6% 0.224 296.3);
Tailwind
colors: {
  custom: {
    50: '#b181f0',
    500: '#874ae7',
    950: '#000000',
  },
}
SCSS
$custom: #874ae7;
$custom-light: #b181f0;
$custom-dark: #000000;
JSON
{
  "hex": "#874ae7",
  "rgb": {
    "r": 135,
    "g": 74,
    "b": 231
  },
  "hsl": {
    "h": 263.312,
    "s": 76.585,
    "l": 59.804
  },
  "oklch": {
    "l": 0.5662,
    "c": 0.22377,
    "h": 296.3
  },
  "luminance": 0.15818
}

Semantic roles & 50–950 ramp

primary
#874AE7
secondary
#CDE5A8
accent
#F335A9
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #874AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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