#874FD4#874FD4

#874FD4 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.9% C 0.196 H 299.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#874FD4
RGBrgb(135, 79, 212)
HSLhsl(265, 61%, 57%)
HSVhsv(265, 63%, 83%)
CMYKcmyk(36.3%, 62.7%, 0%, 16.9%)
CIE-LABlab(46.31, 50.37, -60.08)
CIE-LCHlch(46.31, 78.40, 309.98°)
OKLaboklab(55.89% 0.0961 -0.1709)
OKLCHoklch(55.89% 0.196 299.3)
XYZxyz(24.6684, 15.4961, 63.9660)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FD4 #9CD44F
analogous
#4F5AD4 #874FD4 #CA4FD4
triadic
#874FD4 #D4874F #4FD487
tetradic
#874FD4 #D44F5A #9CD44F #4FD4CA
square
#874FD4 #D44F5A #9CD44F #4FD4CA
split-complementary
#874FD4 #D4CA4F #5AD44F
monochromatic
#4C2187 #682DB9 #874FD4 #A980E0 #CAB1EC

Accessibility & contrast

On white

5.12
#874FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#874FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FD4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FD4#FFFFFF#000000##FFFFFF
##874FD41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#126DD1
Tritanopia (blue-blind)
#766C8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874fd4;
/* rgb */ color: rgb(135, 79, 212);
/* oklch */ color: oklch(55.9% 0.196 299.3);
Tailwind
colors: {
  custom: {
    50: '#af83e2',
    500: '#874fd4',
    950: '#000000',
  },
}
SCSS
$custom: #874fd4;
$custom-light: #af83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#874fd4",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 265.263,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55886,
    "c": 0.19602,
    "h": 299.3
  },
  "luminance": 0.15496
}

Semantic roles & 50–950 ramp

primary
#874FD4
secondary
#C4DAA4
accent
#E444A1
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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