#874FC2#874FC2

#874FC2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.175 H 303.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#874FC2
RGBrgb(135, 79, 194)
HSLhsl(269, 49%, 54%)
HSVhsv(269, 59%, 76%)
CMYKcmyk(30.4%, 59.3%, 0%, 23.9%)
CIE-LABlab(45.13, 45.90, -51.59)
CIE-LCHlch(45.13, 69.06, 311.66°)
OKLaboklab(54.66% 0.0968 -0.1459)
OKLCHoklch(54.66% 0.175 303.6)
XYZxyz(22.5231, 14.6379, 52.6673)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FC2 #8AC24F
analogous
#4F50C2 #874FC2 #C04FC2
triadic
#874FC2 #C2874F #4FC287
tetradic
#874FC2 #C24F50 #8AC24F #4FC2C0
square
#874FC2 #C24F50 #8AC24F #4FC2C0
split-complementary
#874FC2 #C2C04F #50C24F
monochromatic
#4A2770 #69379D #874FC2 #A67CD2 #C5AAE2

Accessibility & contrast

On white

5.35
#874FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#874FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FC2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FC2#FFFFFF#000000##FFFFFF
##874FC21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176AC6
Deuteranopia (green-blind)
#336BBF
Tritanopia (blue-blind)
#7C6681
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874fc2;
/* rgb */ color: rgb(135, 79, 194);
/* oklch */ color: oklch(54.7% 0.175 303.6);
Tailwind
colors: {
  custom: {
    50: '#ae83d5',
    500: '#874fc2',
    950: '#000000',
  },
}
SCSS
$custom: #874fc2;
$custom-light: #ae83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#874fc2",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 269.217,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5466,
    "c": 0.17512,
    "h": 303.6
  },
  "luminance": 0.14638
}

Semantic roles & 50–950 ramp

primary
#874FC2
secondary
#B7CF9E
accent
#D85096
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #874FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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