#874CCA#874CCA

#874CCA is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.8% C 0.189 H 302.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#874CCA
RGBrgb(135, 76, 202)
HSLhsl(268, 54%, 55%)
HSVhsv(268, 62%, 79%)
CMYKcmyk(33.2%, 62.4%, 0%, 20.8%)
CIE-LABlab(45.06, 49.45, -56.34)
CIE-LCHlch(45.06, 74.96, 311.27°)
OKLaboklab(54.77% 0.1002 -0.1599)
OKLCHoklch(54.77% 0.189 302.1)
XYZxyz(23.2343, 14.5840, 57.4566)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CCA #8FCA4C
analogous
#4C50CA #874CCA #C64CCA
triadic
#874CCA #CA874C #4CCA87
tetradic
#874CCA #CA4C50 #8FCA4C #4CCAC6
square
#874CCA #CA4C50 #8FCA4C #4CCAC6
split-complementary
#874CCA #CAC64C #50CA4C
monochromatic
#4B2478 #6932A7 #874CCA #A77BD8 #C6AAE6

Accessibility & contrast

On white

5.36
#874CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#874CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CCA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CCA#FFFFFF#000000##FFFFFF
##874CCA1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#236AC7
Tritanopia (blue-blind)
#7A6784
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874cca;
/* rgb */ color: rgb(135, 76, 202);
/* oklch */ color: oklch(54.8% 0.189 302.1);
Tailwind
colors: {
  custom: {
    50: '#ae81db',
    500: '#874cca',
    950: '#000000',
  },
}
SCSS
$custom: #874cca;
$custom-light: #ae81db;
$custom-dark: #000000;
JSON
{
  "hex": "#874cca",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 202
  },
  "hsl": {
    "h": 268.095,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5477,
    "c": 0.18866,
    "h": 302.1
  },
  "luminance": 0.14584
}

Semantic roles & 50–950 ramp

primary
#874CCA
secondary
#BBD49E
accent
#DE4A99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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