#874BCA#874BCA

#874BCA is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.6% C 0.190 H 302.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#874BCA
RGBrgb(135, 75, 202)
HSLhsl(268, 55%, 54%)
HSVhsv(268, 63%, 79%)
CMYKcmyk(33.2%, 62.9%, 0%, 20.8%)
CIE-LABlab(44.87, 49.96, -56.65)
CIE-LCHlch(44.87, 75.54, 311.41°)
OKLaboklab(54.63% 0.1013 -0.1608)
OKLCHoklch(54.63% 0.19 302.2)
XYZxyz(23.1659, 14.4473, 57.4338)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BCA #8ECA4B
analogous
#4B4FCA #874BCA #C64BCA
triadic
#874BCA #CA874B #4BCA87
tetradic
#874BCA #CA4B4F #8ECA4B #4BCAC6
square
#874BCA #CA4B4F #8ECA4B #4BCAC6
split-complementary
#874BCA #CAC64B #4FCA4B
monochromatic
#4B2377 #6931A7 #874BCA #A77AD8 #C6AAE6

Accessibility & contrast

On white

5.40
#874BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#874BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BCA
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BCA#FFFFFF#000000##FFFFFF
##874BCA1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#216AC7
Tritanopia (blue-blind)
#7A6684
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874bca;
/* rgb */ color: rgb(135, 75, 202);
/* oklch */ color: oklch(54.6% 0.190 302.2);
Tailwind
colors: {
  custom: {
    50: '#ae80db',
    500: '#874bca',
    950: '#000000',
  },
}
SCSS
$custom: #874bca;
$custom-light: #ae80db;
$custom-dark: #000000;
JSON
{
  "hex": "#874bca",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 268.346,
    "s": 54.506,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54631,
    "c": 0.19004,
    "h": 302.2
  },
  "luminance": 0.14447
}

Semantic roles & 50–950 ramp

primary
#874BCA
secondary
#BAD39D
accent
#DE4A98
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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