#874BD8#874BD8

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

Color values

HEX#874BD8
RGBrgb(135, 75, 216)
HSLhsl(266, 64%, 57%)
HSVhsv(266, 65%, 85%)
CMYKcmyk(37.5%, 65.3%, 0%, 15.3%)
CIE-LABlab(45.83, 53.44, -63.14)
CIE-LCHlch(45.83, 82.72, 310.24°)
OKLaboklab(55.63% 0.1001 -0.1799)
OKLCHoklch(55.63% 0.206 299.1)
XYZxyz(24.8993, 15.1406, 66.5630)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BD8 #9CD84B
analogous
#4B56D8 #874BD8 #CE4BD8
triadic
#874BD8 #D8874B #4BD887
tetradic
#874BD8 #D84B56 #9CD84B #4BD8CE
square
#874BD8 #D84B56 #9CD84B #4BD8CE
split-complementary
#874BD8 #D8CE4B #56D84B
monochromatic
#4C1E8B #6829BD #874BD8 #A97DE3 #CAB0EE

Accessibility & contrast

On white

5.21
#874BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#874BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BD8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BD8#FFFFFF#000000##FFFFFF
##874BD81.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#746B8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874bd8;
/* rgb */ color: rgb(135, 75, 216);
/* oklch */ color: oklch(55.6% 0.206 299.1);
Tailwind
colors: {
  custom: {
    50: '#b081e5',
    500: '#874bd8',
    950: '#000000',
  },
}
SCSS
$custom: #874bd8;
$custom-light: #b081e5;
$custom-dark: #000000;
JSON
{
  "hex": "#874bd8",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 265.532,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55627,
    "c": 0.20585,
    "h": 299.1
  },
  "luminance": 0.15141
}

Semantic roles & 50–950 ramp

primary
#874BD8
secondary
#C4DCA3
accent
#E740A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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