#874BC2#874BC2

#874BC2 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.1% C 0.181 H 304.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#874BC2
RGBrgb(135, 75, 194)
HSLhsl(270, 49%, 53%)
HSVhsv(270, 61%, 76%)
CMYKcmyk(30.4%, 61.3%, 0%, 23.9%)
CIE-LABlab(44.34, 48.02, -52.86)
CIE-LCHlch(44.34, 71.41, 312.25°)
OKLaboklab(54.09% 0.1017 -0.1496)
OKLCHoklch(54.09% 0.181 304.2)
XYZxyz(22.2432, 14.0782, 52.5740)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BC2 #86C24B
analogous
#4B4BC2 #874BC2 #C24BC2
triadic
#874BC2 #C2874B #4BC287
tetradic
#874BC2 #C24B4B #86C24B #4BC2C2
square
#874BC2 #C24B4B #86C24B #4BC2C2
split-complementary
#874BC2 #C2C24B #4BC24B
monochromatic
#4A256D #68359B #874BC2 #A579D1 #C4A6E1

Accessibility & contrast

On white

5.50
#874BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#874BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BC2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BC2#FFFFFF#000000##FFFFFF
##874BC21.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0167C6
Deuteranopia (green-blind)
#2D69BF
Tritanopia (blue-blind)
#7C647F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874bc2;
/* rgb */ color: rgb(135, 75, 194);
/* oklch */ color: oklch(54.1% 0.181 304.2);
Tailwind
colors: {
  custom: {
    50: '#ae80d5',
    500: '#874bc2',
    950: '#000000',
  },
}
SCSS
$custom: #874bc2;
$custom-light: #ae80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#874bc2",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 270.252,
    "s": 49.378,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54085,
    "c": 0.18094,
    "h": 304.2
  },
  "luminance": 0.14078
}

Semantic roles & 50–950 ramp

primary
#874BC2
secondary
#B4CE9B
accent
#D94F93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #874BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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