#874EBB#874EBB

#874EBB is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.168 H 305.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#874EBB
RGBrgb(135, 78, 187)
HSLhsl(271, 44%, 52%)
HSVhsv(271, 58%, 73%)
CMYKcmyk(27.8%, 58.3%, 0%, 26.7%)
CIE-LABlab(44.50, 44.74, -48.53)
CIE-LCHlch(44.50, 66.01, 312.67°)
OKLaboklab(54.06% 0.0981 -0.1369)
OKLCHoklch(54.06% 0.168 305.6)
XYZxyz(21.6838, 14.1877, 48.6002)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EBB #82BB4E
analogous
#514EBB #874EBB #BB4EB9
triadic
#874EBB #BB874E #4EBB87
tetradic
#874EBB #BB514E #82BB4E #4EB9BB
square
#874EBB #BB514E #82BB4E #4EB9BB
split-complementary
#874EBB #B9BB4E #4EBB51
monochromatic
#492867 #683993 #874EBB #A57ACC #C3A6DD

Accessibility & contrast

On white

5.47
#874EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#874EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EBB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EBB#FFFFFF#000000##FFFFFF
##874EBB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BF
Deuteranopia (green-blind)
#3969B8
Tritanopia (blue-blind)
#7E637D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874ebb;
/* rgb */ color: rgb(135, 78, 187);
/* oklch */ color: oklch(54.1% 0.168 305.6);
Tailwind
colors: {
  custom: {
    50: '#ad82d0',
    500: '#874ebb',
    950: '#000000',
  },
}
SCSS
$custom: #874ebb;
$custom-light: #ad82d0;
$custom-dark: #000000;
JSON
{
  "hex": "#874ebb",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 187
  },
  "hsl": {
    "h": 271.376,
    "s": 44.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.54059,
    "c": 0.16847,
    "h": 305.6
  },
  "luminance": 0.14188
}

Semantic roles & 50–950 ramp

primary
#874EBB
secondary
#B1CA9B
accent
#D45491
background
#FAF8FC
surface
#F5EFF9
border
#CFCAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #874EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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