#874FC8#874FC8

#874FC8 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.1% C 0.182 H 302.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#874FC8
RGBrgb(135, 79, 200)
HSLhsl(268, 52%, 55%)
HSVhsv(268, 61%, 78%)
CMYKcmyk(32.5%, 60.5%, 0%, 21.6%)
CIE-LABlab(45.51, 47.38, -54.46)
CIE-LCHlch(45.51, 72.18, 311.02°)
OKLaboklab(55.06% 0.0967 -0.1543)
OKLCHoklch(55.06% 0.182 302.1)
XYZxyz(23.2106, 14.9129, 56.2881)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FC8 #90C84F
analogous
#4F53C8 #874FC8 #C44FC8
triadic
#874FC8 #C8874F #4FC887
tetradic
#874FC8 #C84F53 #90C84F #4FC8C4
square
#874FC8 #C84F53 #90C84F #4FC8C4
split-complementary
#874FC8 #C8C44F #53C84F
monochromatic
#4B2577 #6934A6 #874FC8 #A77ED7 #C7ACE5

Accessibility & contrast

On white

5.27
#874FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#874FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FC8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FC8#FFFFFF#000000##FFFFFF
##874FC81.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036BCC
Deuteranopia (green-blind)
#2B6BC5
Tritanopia (blue-blind)
#7A6884
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874fc8;
/* rgb */ color: rgb(135, 79, 200);
/* oklch */ color: oklch(55.1% 0.182 302.1);
Tailwind
colors: {
  custom: {
    50: '#ae83d9',
    500: '#874fc8',
    950: '#000000',
  },
}
SCSS
$custom: #874fc8;
$custom-light: #ae83d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874fc8",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 267.769,
    "s": 52.381,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55059,
    "c": 0.18212,
    "h": 302.1
  },
  "luminance": 0.14913
}

Semantic roles & 50–950 ramp

primary
#874FC8
secondary
#BBD3A0
accent
#DC4C99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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