#874DD9#874DD9

#874DD9 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.0% C 0.204 H 298.6°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#874DD9
RGBrgb(135, 77, 217)
HSLhsl(265, 65%, 58%)
HSVhsv(265, 65%, 85%)
CMYKcmyk(37.8%, 64.5%, 0%, 14.9%)
CIE-LABlab(46.27, 52.67, -63.00)
CIE-LCHlch(46.27, 82.12, 309.90°)
OKLaboklab(55.97% 0.0979 -0.1794)
OKLCHoklch(55.97% 0.204 298.6)
XYZxyz(25.1668, 15.4681, 67.2919)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD9 #9FD94D
analogous
#4D59D9 #874DD9 #CD4DD9
triadic
#874DD9 #D9874D #4DD987
tetradic
#874DD9 #D94D59 #9FD94D #4DD9CD
square
#874DD9 #D94D59 #9FD94D #4DD9CD
split-complementary
#874DD9 #D9CD4D #59D94D
monochromatic
#4C1E8D #6729C0 #874DD9 #A97FE4 #CBB2EF

Accessibility & contrast

On white

5.13
#874DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#874DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD9#FFFFFF#000000##FFFFFF
##874DD91.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#006CD6
Tritanopia (blue-blind)
#746D8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874dd9;
/* rgb */ color: rgb(135, 77, 217);
/* oklch */ color: oklch(56.0% 0.204 298.6);
Tailwind
colors: {
  custom: {
    50: '#b082e6',
    500: '#874dd9',
    950: '#000000',
  },
}
SCSS
$custom: #874dd9;
$custom-light: #b082e6;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd9",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 217
  },
  "hsl": {
    "h": 264.857,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55968,
    "c": 0.20439,
    "h": 298.6
  },
  "luminance": 0.15468
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #874DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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