#874BD6#874BD6

#874BD6 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.5% C 0.204 H 299.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#874BD6
RGBrgb(135, 75, 214)
HSLhsl(266, 63%, 57%)
HSVhsv(266, 65%, 84%)
CMYKcmyk(36.9%, 65%, 0%, 16.1%)
CIE-LABlab(45.69, 52.94, -62.23)
CIE-LCHlch(45.69, 81.70, 310.39°)
OKLaboklab(55.48% 0.1003 -0.1772)
OKLCHoklch(55.48% 0.204 299.5)
XYZxyz(24.6423, 15.0378, 65.2096)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BD6 #9AD64B
analogous
#4B55D6 #874BD6 #CC4BD6
triadic
#874BD6 #D6874B #4BD687
tetradic
#874BD6 #D64B55 #9AD64B #4BD6CC
square
#874BD6 #D64B55 #9AD64B #4BD6CC
split-complementary
#874BD6 #D6CC4B #55D64B
monochromatic
#4C1F88 #682ABA #874BD6 #A87DE1 #C9AFED

Accessibility & contrast

On white

5.24
#874BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #874BD6
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BD6#FFFFFF#000000##FFFFFF
##874BD61.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#756B8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874bd6;
/* rgb */ color: rgb(135, 75, 214);
/* oklch */ color: oklch(55.5% 0.204 299.5);
Tailwind
colors: {
  custom: {
    50: '#af81e3',
    500: '#874bd6',
    950: '#000000',
  },
}
SCSS
$custom: #874bd6;
$custom-light: #af81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#874bd6",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 214
  },
  "hsl": {
    "h": 265.899,
    "s": 62.896,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55482,
    "c": 0.2036,
    "h": 299.5
  },
  "luminance": 0.15038
}

Semantic roles & 50–950 ramp

primary
#874BD6
secondary
#C2DBA2
accent
#E6429F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #874BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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