#874AD2#874AD2

#874AD2 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.1% C 0.200 H 300.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#874AD2
RGBrgb(135, 74, 210)
HSLhsl(267, 60%, 56%)
HSVhsv(267, 65%, 82%)
CMYKcmyk(35.7%, 64.8%, 0%, 17.6%)
CIE-LABlab(45.22, 52.45, -60.69)
CIE-LCHlch(45.22, 80.21, 310.84°)
OKLaboklab(55.06% 0.1018 -0.1726)
OKLCHoklch(55.06% 0.2 300.5)
XYZxyz(24.0705, 14.7014, 62.5298)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874AD2 #95D24A
analogous
#4A51D2 #874AD2 #CB4AD2
triadic
#874AD2 #D2874A #4AD287
tetradic
#874AD2 #D24A51 #95D24A #4AD2CB
square
#874AD2 #D24A51 #95D24A #4AD2CB
split-complementary
#874AD2 #D2CB4A #51D24A
monochromatic
#4C2081 #682CB2 #874AD2 #A77BDE #C8ACEA

Accessibility & contrast

On white

5.33
#874AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#874AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874AD2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874AD2#FFFFFF#000000##FFFFFF
##874AD21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#036ACF
Tritanopia (blue-blind)
#776988
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ad2;
/* rgb */ color: rgb(135, 74, 210);
/* oklch */ color: oklch(55.1% 0.200 300.5);
Tailwind
colors: {
  custom: {
    50: '#af80e1',
    500: '#874ad2',
    950: '#000000',
  },
}
SCSS
$custom: #874ad2;
$custom-light: #af80e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874ad2",
  "rgb": {
    "r": 135,
    "g": 74,
    "b": 210
  },
  "hsl": {
    "h": 266.912,
    "s": 60.177,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5506,
    "c": 0.20041,
    "h": 300.5
  },
  "luminance": 0.14702
}

Semantic roles & 50–950 ramp

primary
#874AD2
secondary
#BFD8A0
accent
#E3449C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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