#874DCB#874DCB

#874DCB is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.188 H 301.7°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#874DCB
RGBrgb(135, 77, 203)
HSLhsl(268, 55%, 55%)
HSVhsv(268, 62%, 80%)
CMYKcmyk(33.5%, 62.1%, 0%, 20.4%)
CIE-LABlab(45.32, 49.17, -56.50)
CIE-LCHlch(45.32, 74.90, 311.03°)
OKLaboklab(54.98% 0.0989 -0.1603)
OKLCHoklch(54.98% 0.188 301.7)
XYZxyz(23.4225, 14.7704, 58.1053)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DCB #91CB4D
analogous
#4D52CB #874DCB #C64DCB
triadic
#874DCB #CB874D #4DCB87
tetradic
#874DCB #CB4D52 #91CB4D #4DCBC6
square
#874DCB #CB4D52 #91CB4D #4DCBC6
split-complementary
#874DCB #CBC64D #52CB4D
monochromatic
#4B247A #6931A9 #874DCB #A77CD9 #C7ACE7

Accessibility & contrast

On white

5.31
#874DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#874DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DCB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DCB#FFFFFF#000000##FFFFFF
##874DCB1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#236BC8
Tritanopia (blue-blind)
#796885
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874dcb;
/* rgb */ color: rgb(135, 77, 203);
/* oklch */ color: oklch(55.0% 0.188 301.7);
Tailwind
colors: {
  custom: {
    50: '#ae82dc',
    500: '#874dcb',
    950: '#000000',
  },
}
SCSS
$custom: #874dcb;
$custom-light: #ae82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#874dcb",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 267.619,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54979,
    "c": 0.18841,
    "h": 301.7
  },
  "luminance": 0.1477
}

Semantic roles & 50–950 ramp

primary
#874DCB
secondary
#BCD49F
accent
#DE4A9A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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