#874BD7#874BD7

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

Color values

HEX#874BD7
RGBrgb(135, 75, 215)
HSLhsl(266, 64%, 57%)
HSVhsv(266, 65%, 84%)
CMYKcmyk(37.2%, 65.1%, 0%, 15.7%)
CIE-LABlab(45.76, 53.19, -62.69)
CIE-LCHlch(45.76, 82.21, 310.31°)
OKLaboklab(55.55% 0.1002 -0.1785)
OKLCHoklch(55.55% 0.205 299.3)
XYZxyz(24.7704, 15.0891, 65.8843)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BD7 #9BD74B
analogous
#4B55D7 #874BD7 #CD4BD7
triadic
#874BD7 #D7874B #4BD787
tetradic
#874BD7 #D74B55 #9BD74B #4BD7CD
square
#874BD7 #D74B55 #9BD74B #4BD7CD
split-complementary
#874BD7 #D7CD4B #55D74B
monochromatic
#4C1E89 #682ABB #874BD7 #A87DE2 #CAAFED

Accessibility & contrast

On white

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

On black

4.02
#874BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##874BD7#FFFFFF#000000##FFFFFF
##874BD71.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#756B8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874bd7;
/* rgb */ color: rgb(135, 75, 215);
/* oklch */ color: oklch(55.6% 0.205 299.3);
Tailwind
colors: {
  custom: {
    50: '#af81e4',
    500: '#874bd7',
    950: '#000000',
  },
}
SCSS
$custom: #874bd7;
$custom-light: #af81e4;
$custom-dark: #000000;
JSON
{
  "hex": "#874bd7",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 265.714,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55554,
    "c": 0.20472,
    "h": 299.3
  },
  "luminance": 0.15089
}

Semantic roles & 50–950 ramp

primary
#874BD7
secondary
#C3DBA2
accent
#E741A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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