#874CD4#874CD4

#874CD4 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.5% C 0.200 H 299.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#874CD4
RGBrgb(135, 76, 212)
HSLhsl(266, 61%, 56%)
HSVhsv(266, 64%, 83%)
CMYKcmyk(36.3%, 64.2%, 0%, 16.9%)
CIE-LABlab(45.73, 51.93, -61.00)
CIE-LCHlch(45.73, 80.11, 310.40°)
OKLaboklab(55.47% 0.0994 -0.1736)
OKLCHoklch(55.47% 0.2 299.8)
XYZxyz(24.4569, 15.0730, 63.8955)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD4 #99D44C
analogous
#4C55D4 #874CD4 #CB4CD4
triadic
#874CD4 #D4874C #4CD487
tetradic
#874CD4 #D44C55 #99D44C #4CD4CB
square
#874CD4 #D44C55 #99D44C #4CD4CB
split-complementary
#874CD4 #D4CB4C #55D44C
monochromatic
#4C2086 #682CB7 #874CD4 #A87DE0 #C9AFEC

Accessibility & contrast

On white

5.23
#874CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#874CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD4#FFFFFF#000000##FFFFFF
##874CD41.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#046BD1
Tritanopia (blue-blind)
#766A89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874cd4;
/* rgb */ color: rgb(135, 76, 212);
/* oklch */ color: oklch(55.5% 0.200 299.8);
Tailwind
colors: {
  custom: {
    50: '#af81e2',
    500: '#874cd4',
    950: '#000000',
  },
}
SCSS
$custom: #874cd4;
$custom-light: #af81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd4",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 266.029,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55473,
    "c": 0.20003,
    "h": 299.8
  },
  "luminance": 0.15073
}

Semantic roles & 50–950 ramp

primary
#874CD4
secondary
#C2DAA2
accent
#E4439F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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