#874FA2#874FA2

#874FA2 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 52.7% C 0.138 H 313.7°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#874FA2
RGBrgb(135, 79, 162)
HSLhsl(280, 34%, 47%)
HSVhsv(280, 51%, 64%)
CMYKcmyk(16.7%, 51.2%, 0%, 36.5%)
CIE-LABlab(43.29, 38.37, -35.73)
CIE-LCHlch(43.29, 52.43, 317.04°)
OKLaboklab(52.71% 0.0952 -0.0996)
OKLCHoklch(52.71% 0.138 313.7)
XYZxyz(19.3082, 13.3520, 35.7355)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FA2 #6AA24F
analogous
#5E4FA2 #874FA2 #A24F94
triadic
#874FA2 #A2874F #4FA287
tetradic
#874FA2 #A25E4F #6AA24F #4F94A2
square
#874FA2 #A25E4F #6AA24F #4F94A2
split-complementary
#874FA2 #94A24F #4FA25E
monochromatic
#422750 #653B79 #874FA2 #A473BB #BF9CCF

Accessibility & contrast

On white

5.72
#874FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#874FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FA2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FA2#FFFFFF#000000##FFFFFF
##874FA21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#4D68A0
Tritanopia (blue-blind)
#855C71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #874fa2;
/* rgb */ color: rgb(135, 79, 162);
/* oklch */ color: oklch(52.7% 0.138 313.7);
Tailwind
colors: {
  custom: {
    50: '#ac82be',
    500: '#874fa2',
    950: '#000000',
  },
}
SCSS
$custom: #874fa2;
$custom-light: #ac82be;
$custom-dark: #000000;
JSON
{
  "hex": "#874fa2",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 280.482,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.13779,
    "h": 313.7
  },
  "luminance": 0.13351
}

Semantic roles & 50–950 ramp

primary
#874FA2
secondary
#9FBC91
accent
#CB5D81
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #874FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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