#874FC4#874FC4

#874FC4 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.177 H 303.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#874FC4
RGBrgb(135, 79, 196)
HSLhsl(269, 50%, 54%)
HSVhsv(269, 60%, 77%)
CMYKcmyk(31.1%, 59.7%, 0%, 23.1%)
CIE-LABlab(45.26, 46.39, -52.55)
CIE-LCHlch(45.26, 70.10, 311.44°)
OKLaboklab(54.79% 0.0968 -0.1487)
OKLCHoklch(54.79% 0.177 303.1)
XYZxyz(22.7492, 14.7284, 53.8582)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FC4 #8CC44F
analogous
#4F52C4 #874FC4 #C24FC4
triadic
#874FC4 #C4874F #4FC487
tetradic
#874FC4 #C44F52 #8CC44F #4FC4C2
square
#874FC4 #C44F52 #8CC44F #4FC4C2
split-complementary
#874FC4 #C4C24F #52C44F
monochromatic
#4B2672 #6936A0 #874FC4 #A67DD3 #C6ABE3

Accessibility & contrast

On white

5.32
#874FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #874FC4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FC4#FFFFFF#000000##FFFFFF
##874FC41.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126AC8
Deuteranopia (green-blind)
#316BC1
Tritanopia (blue-blind)
#7B6782
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874fc4;
/* rgb */ color: rgb(135, 79, 196);
/* oklch */ color: oklch(54.8% 0.177 303.1);
Tailwind
colors: {
  custom: {
    50: '#ae83d6',
    500: '#874fc4',
    950: '#000000',
  },
}
SCSS
$custom: #874fc4;
$custom-light: #ae83d6;
$custom-dark: #000000;
JSON
{
  "hex": "#874fc4",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 268.718,
    "s": 49.787,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.17747,
    "h": 303.1
  },
  "luminance": 0.14728
}

Semantic roles & 50–950 ramp

primary
#874FC4
secondary
#B8D09E
accent
#D94E97
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #874FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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