#874EB8#874EB8

#874EB8 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.165 H 306.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#874EB8
RGBrgb(135, 78, 184)
HSLhsl(272, 43%, 51%)
HSVhsv(272, 58%, 72%)
CMYKcmyk(26.6%, 57.6%, 0%, 27.8%)
CIE-LABlab(44.32, 44.02, -47.07)
CIE-LCHlch(44.32, 64.45, 313.08°)
OKLaboklab(53.87% 0.0981 -0.1327)
OKLCHoklch(53.87% 0.165 306.5)
XYZxyz(21.3660, 14.0606, 46.9265)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874EB8 #7FB84E
analogous
#524EB8 #874EB8 #B84EB4
triadic
#874EB8 #B8874E #4EB887
tetradic
#874EB8 #B8524E #7FB84E #4EB4B8
square
#874EB8 #B8524E #7FB84E #4EB4B8
split-complementary
#874EB8 #B4B84E #4EB852
monochromatic
#482864 #68398F #874EB8 #A57ACA #C2A5DB

Accessibility & contrast

On white

5.51
#874EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#874EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874EB8
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874EB8#FFFFFF#000000##FFFFFF
##874EB81.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BB
Deuteranopia (green-blind)
#3C69B5
Tritanopia (blue-blind)
#7F627B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #874eb8;
/* rgb */ color: rgb(135, 78, 184);
/* oklch */ color: oklch(53.9% 0.165 306.5);
Tailwind
colors: {
  custom: {
    50: '#ad82ce',
    500: '#874eb8',
    950: '#000000',
  },
}
SCSS
$custom: #874eb8;
$custom-light: #ad82ce;
$custom-dark: #000000;
JSON
{
  "hex": "#874eb8",
  "rgb": {
    "r": 135,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 272.264,
    "s": 42.742,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53868,
    "c": 0.16497,
    "h": 306.5
  },
  "luminance": 0.1406
}

Semantic roles & 50–950 ramp

primary
#874EB8
secondary
#AFC89A
accent
#D3558F
background
#FAF8FC
surface
#F5EFF9
border
#CFCAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #874EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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