#874AD4#874AD4

#874AD4 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.2% C 0.203 H 300.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#874AD4
RGBrgb(135, 74, 212)
HSLhsl(267, 62%, 56%)
HSVhsv(267, 65%, 83%)
CMYKcmyk(36.3%, 65.1%, 0%, 16.9%)
CIE-LABlab(45.36, 52.94, -61.61)
CIE-LCHlch(45.36, 81.23, 310.67°)
OKLaboklab(55.2% 0.1016 -0.1753)
OKLCHoklch(55.2% 0.203 300.1)
XYZxyz(24.3212, 14.8017, 63.8503)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874AD4 #97D44A
analogous
#4A52D4 #874AD4 #CC4AD4
triadic
#874AD4 #D4874A #4AD487
tetradic
#874AD4 #D44A52 #97D44A #4AD4CC
square
#874AD4 #D44A52 #97D44A #4AD4CC
split-complementary
#874AD4 #D4CC4A #52D44A
monochromatic
#4C1F84 #682BB6 #874AD4 #A87BE0 #C9ADEB

Accessibility & contrast

On white

5.30
#874AD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#874AD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874AD4
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874AD4#FFFFFF#000000##FFFFFF
##874AD41.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#766989
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ad4;
/* rgb */ color: rgb(135, 74, 212);
/* oklch */ color: oklch(55.2% 0.203 300.1);
Tailwind
colors: {
  custom: {
    50: '#af80e2',
    500: '#874ad4',
    950: '#000000',
  },
}
SCSS
$custom: #874ad4;
$custom-light: #af80e2;
$custom-dark: #000000;
JSON
{
  "hex": "#874ad4",
  "rgb": {
    "r": 135,
    "g": 74,
    "b": 212
  },
  "hsl": {
    "h": 266.522,
    "s": 61.607,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55204,
    "c": 0.20266,
    "h": 300.1
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#874AD4
secondary
#C0D9A0
accent
#E5439D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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