#874BB7#874BB7

#874BB7 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.4% C 0.168 H 307.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#874BB7
RGBrgb(135, 75, 183)
HSLhsl(273, 43%, 51%)
HSVhsv(273, 59%, 72%)
CMYKcmyk(26.2%, 59%, 0%, 28.2%)
CIE-LABlab(43.66, 45.38, -47.55)
CIE-LCHlch(43.66, 65.73, 313.67°)
OKLaboklab(53.36% 0.1019 -0.134)
OKLCHoklch(53.36% 0.168 307.2)
XYZxyz(21.0532, 13.6022, 46.3070)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BB7 #7BB74B
analogous
#514BB7 #874BB7 #B74BB1
triadic
#874BB7 #B7874B #4BB787
tetradic
#874BB7 #B7514B #7BB74B #4BB1B7
square
#874BB7 #B7514B #7BB74B #4BB1B7
split-complementary
#874BB7 #B1B74B #4BB751
monochromatic
#472761 #67388D #874BB7 #A477C8 #C1A2DA

Accessibility & contrast

On white

5.64
#874BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#874BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BB7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BB7#FFFFFF#000000##FFFFFF
##874BB71.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#3968B4
Tritanopia (blue-blind)
#80607A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #874bb7;
/* rgb */ color: rgb(135, 75, 183);
/* oklch */ color: oklch(53.4% 0.168 307.2);
Tailwind
colors: {
  custom: {
    50: '#ad80cd',
    500: '#874bb7',
    950: '#000000',
  },
}
SCSS
$custom: #874bb7;
$custom-light: #ad80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#874bb7",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 273.333,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53364,
    "c": 0.16839,
    "h": 307.2
  },
  "luminance": 0.13602
}

Semantic roles & 50–950 ramp

primary
#874BB7
secondary
#ACC797
accent
#D3558D
background
#FAF8FC
surface
#F5EFF9
border
#CFCAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #874BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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