#874CBB#874CBB

#874CBB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.171 H 305.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#874CBB
RGBrgb(135, 76, 187)
HSLhsl(272, 45%, 52%)
HSVhsv(272, 59%, 73%)
CMYKcmyk(27.8%, 59.4%, 0%, 26.7%)
CIE-LABlab(44.10, 45.80, -49.18)
CIE-LCHlch(44.10, 67.20, 312.97°)
OKLaboklab(53.77% 0.1007 -0.1388)
OKLCHoklch(53.77% 0.171 305.9)
XYZxyz(21.5438, 13.9078, 48.5536)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CBB #80BB4C
analogous
#504CBB #874CBB #BB4CB8
triadic
#874CBB #BB874C #4CBB87
tetradic
#874CBB #BB504C #80BB4C #4CB8BB
square
#874CBB #BB504C #80BB4C #4CB8BB
split-complementary
#874CBB #B8BB4C #4CBB50
monochromatic
#482766 #683892 #874CBB #A578CC #C2A5DD

Accessibility & contrast

On white

5.55
#874CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#874CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CBB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CBB#FFFFFF#000000##FFFFFF
##874CBB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B66BF
Deuteranopia (green-blind)
#3769B8
Tritanopia (blue-blind)
#7E627C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #874cbb;
/* rgb */ color: rgb(135, 76, 187);
/* oklch */ color: oklch(53.8% 0.171 305.9);
Tailwind
colors: {
  custom: {
    50: '#ad81d0',
    500: '#874cbb',
    950: '#000000',
  },
}
SCSS
$custom: #874cbb;
$custom-light: #ad81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#874cbb",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 187
  },
  "hsl": {
    "h": 271.892,
    "s": 44.939,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53766,
    "c": 0.17148,
    "h": 305.9
  },
  "luminance": 0.13908
}

Semantic roles & 50–950 ramp

primary
#874CBB
secondary
#B0CA99
accent
#D55390
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #874CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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