#874FC7#874FC7

#874FC7 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.0% C 0.181 H 302.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#874FC7
RGBrgb(135, 79, 199)
HSLhsl(268, 52%, 55%)
HSVhsv(268, 60%, 78%)
CMYKcmyk(32.2%, 60.3%, 0%, 22%)
CIE-LABlab(45.45, 47.13, -53.98)
CIE-LCHlch(45.45, 71.66, 311.12°)
OKLaboklab(54.99% 0.0967 -0.1529)
OKLCHoklch(54.99% 0.181 302.3)
XYZxyz(23.0941, 14.8663, 55.6746)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FC7 #8FC74F
analogous
#4F53C7 #874FC7 #C34FC7
triadic
#874FC7 #C7874F #4FC787
tetradic
#874FC7 #C74F53 #8FC74F #4FC7C3
square
#874FC7 #C74F53 #8FC74F #4FC7C3
split-complementary
#874FC7 #C7C34F #53C74F
monochromatic
#4B2676 #6934A4 #874FC7 #A77DD6 #C6ACE5

Accessibility & contrast

On white

5.29
#874FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#874FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FC7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FC7#FFFFFF#000000##FFFFFF
##874FC71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076BCB
Deuteranopia (green-blind)
#2D6BC4
Tritanopia (blue-blind)
#7A6883
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874fc7;
/* rgb */ color: rgb(135, 79, 199);
/* oklch */ color: oklch(55.0% 0.181 302.3);
Tailwind
colors: {
  custom: {
    50: '#ae83d9',
    500: '#874fc7',
    950: '#000000',
  },
}
SCSS
$custom: #874fc7;
$custom-light: #ae83d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874fc7",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 268,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54992,
    "c": 0.18095,
    "h": 302.3
  },
  "luminance": 0.14866
}

Semantic roles & 50–950 ramp

primary
#874FC7
secondary
#BBD2A0
accent
#DB4D99
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #874FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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