#874DC5#874DC5

#874DC5 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.6% C 0.182 H 303.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#874DC5
RGBrgb(135, 77, 197)
HSLhsl(269, 51%, 54%)
HSVhsv(269, 61%, 77%)
CMYKcmyk(31.5%, 60.9%, 0%, 22.7%)
CIE-LABlab(44.93, 47.70, -53.66)
CIE-LCHlch(44.93, 71.80, 311.63°)
OKLaboklab(54.57% 0.0992 -0.152)
OKLCHoklch(54.57% 0.182 303.1)
XYZxyz(22.7213, 14.4899, 54.4123)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DC5 #8BC54D
analogous
#4D4FC5 #874DC5 #C34DC5
triadic
#874DC5 #C5874D #4DC587
tetradic
#874DC5 #C54D4F #8BC54D #4DC5C3
square
#874DC5 #C54D4F #8BC54D #4DC5C3
split-complementary
#874DC5 #C5C34D #4FC54D
monochromatic
#4B2572 #6934A0 #874DC5 #A67BD4 #C5A9E3

Accessibility & contrast

On white

5.39
#874DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#874DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DC5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DC5#FFFFFF#000000##FFFFFF
##874DC51.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0269C9
Deuteranopia (green-blind)
#2C6AC2
Tritanopia (blue-blind)
#7B6682
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874dc5;
/* rgb */ color: rgb(135, 77, 197);
/* oklch */ color: oklch(54.6% 0.182 303.1);
Tailwind
colors: {
  custom: {
    50: '#ae82d7',
    500: '#874dc5',
    950: '#000000',
  },
}
SCSS
$custom: #874dc5;
$custom-light: #ae82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#874dc5",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 269,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5457,
    "c": 0.18151,
    "h": 303.1
  },
  "luminance": 0.1449
}

Semantic roles & 50–950 ramp

primary
#874DC5
secondary
#B8D19D
accent
#DA4D96
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #874DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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