#874FB2#874FB2

#874FB2 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.156 H 308.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#874FB2
RGBrgb(135, 79, 178)
HSLhsl(274, 39%, 50%)
HSVhsv(274, 56%, 70%)
CMYKcmyk(24.2%, 55.6%, 0%, 30.2%)
CIE-LABlab(44.17, 42.05, -43.79)
CIE-LCHlch(44.17, 60.71, 313.84°)
OKLaboklab(53.65% 0.0966 -0.1231)
OKLCHoklch(53.65% 0.156 308.1)
XYZxyz(20.8219, 13.9575, 43.7080)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FB2 #7AB24F
analogous
#554FB2 #874FB2 #B24FAB
triadic
#874FB2 #B2874F #4FB287
tetradic
#874FB2 #B2554F #7AB24F #4FABB2
square
#874FB2 #B2554F #7AB24F #4FABB2
split-complementary
#874FB2 #ABB24F #4FB255
monochromatic
#47295E #673C88 #874FB2 #A47AC5 #C1A4D7

Accessibility & contrast

On white

5.54
#874FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#874FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FB2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FB2#FFFFFF#000000##FFFFFF
##874FB21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#4269B0
Tritanopia (blue-blind)
#816179
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #874fb2;
/* rgb */ color: rgb(135, 79, 178);
/* oklch */ color: oklch(53.6% 0.156 308.1);
Tailwind
colors: {
  custom: {
    50: '#ad82c9',
    500: '#874fb2',
    950: '#000000',
  },
}
SCSS
$custom: #874fb2;
$custom-light: #ad82c9;
$custom-dark: #000000;
JSON
{
  "hex": "#874fb2",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 273.939,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53645,
    "c": 0.15642,
    "h": 308.1
  },
  "luminance": 0.13957
}

Semantic roles & 50–950 ramp

primary
#874FB2
secondary
#ACC498
accent
#CF598C
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #874FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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