#874CD9#874CD9

#874CD9 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.8% C 0.206 H 298.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#874CD9
RGBrgb(135, 76, 217)
HSLhsl(265, 65%, 57%)
HSVhsv(265, 65%, 85%)
CMYKcmyk(37.8%, 65%, 0%, 14.9%)
CIE-LABlab(46.08, 53.18, -63.30)
CIE-LCHlch(46.08, 82.68, 310.03°)
OKLaboklab(55.83% 0.0989 -0.1803)
OKLCHoklch(55.83% 0.206 298.8)
XYZxyz(25.0974, 15.3292, 67.2688)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD9 #9ED94C
analogous
#4C58D9 #874CD9 #CD4CD9
triadic
#874CD9 #D9874C #4CD987
tetradic
#874CD9 #D94C58 #9ED94C #4CD9CD
square
#874CD9 #D94C58 #9ED94C #4CD9CD
split-complementary
#874CD9 #D9CD4C #58D94C
monochromatic
#4C1E8D #6829BF #874CD9 #A97EE4 #CBB1EE

Accessibility & contrast

On white

5.16
#874CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#874CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD9
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD9#FFFFFF#000000##FFFFFF
##874CD91.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#006CD6
Tritanopia (blue-blind)
#746C8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874cd9;
/* rgb */ color: rgb(135, 76, 217);
/* oklch */ color: oklch(55.8% 0.206 298.8);
Tailwind
colors: {
  custom: {
    50: '#b081e6',
    500: '#874cd9',
    950: '#000000',
  },
}
SCSS
$custom: #874cd9;
$custom-light: #b081e6;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd9",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 265.106,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55833,
    "c": 0.20568,
    "h": 298.8
  },
  "luminance": 0.1533
}

Semantic roles & 50–950 ramp

primary
#874CD9
secondary
#C5DDA4
accent
#E840A2
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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