#874CB4#874CB4

#874CB4 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.163 H 308.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#874CB4
RGBrgb(135, 76, 180)
HSLhsl(274, 41%, 50%)
HSVhsv(274, 58%, 71%)
CMYKcmyk(25%, 57.8%, 0%, 29.4%)
CIE-LABlab(43.68, 44.15, -45.76)
CIE-LCHlch(43.68, 63.58, 313.97°)
OKLaboklab(53.32% 0.1006 -0.1288)
OKLCHoklch(53.32% 0.163 308)
XYZxyz(20.8127, 13.6153, 44.7028)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CB4 #79B44C
analogous
#534CB4 #874CB4 #B44CAD
triadic
#874CB4 #B4874C #4CB487
tetradic
#874CB4 #B4534C #79B44C #4CADB4
square
#874CB4 #B4534C #79B44C #4CADB4
split-complementary
#874CB4 #ADB44C #4CB453
monochromatic
#46275E #673A89 #874CB4 #A477C6 #C1A2D8

Accessibility & contrast

On white

5.64
#874CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#874CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CB4
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CB4#FFFFFF#000000##FFFFFF
##874CB41.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2665B7
Deuteranopia (green-blind)
#3D68B2
Tritanopia (blue-blind)
#805F79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #874cb4;
/* rgb */ color: rgb(135, 76, 180);
/* oklch */ color: oklch(53.3% 0.163 308.0);
Tailwind
colors: {
  custom: {
    50: '#ad81cb',
    500: '#874cb4',
    950: '#000000',
  },
}
SCSS
$custom: #874cb4;
$custom-light: #ad81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#874cb4",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 274.038,
    "s": 40.945,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53319,
    "c": 0.16343,
    "h": 308
  },
  "luminance": 0.13615
}

Semantic roles & 50–950 ramp

primary
#874CB4
secondary
#ABC597
accent
#D1578C
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #874CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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