#874DD2#874DD2

#874DD2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.5% C 0.196 H 300.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#874DD2
RGBrgb(135, 77, 210)
HSLhsl(266, 60%, 56%)
HSVhsv(266, 63%, 82%)
CMYKcmyk(35.7%, 63.3%, 0%, 17.6%)
CIE-LABlab(45.79, 50.91, -59.77)
CIE-LCHlch(45.79, 78.52, 310.42°)
OKLaboklab(55.47% 0.0985 -0.1699)
OKLCHoklch(55.47% 0.196 300.1)
XYZxyz(24.2756, 15.1116, 62.5982)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD2 #98D24D
analogous
#4D56D2 #874DD2 #C94DD2
triadic
#874DD2 #D2874D #4DD287
tetradic
#874DD2 #D24D56 #98D24D #4DD2C9
square
#874DD2 #D24D56 #98D24D #4DD2C9
split-complementary
#874DD2 #D2C94D #56D24D
monochromatic
#4C2183 #682EB4 #874DD2 #A87EDE #C9AFEB

Accessibility & contrast

On white

5.22
#874DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#874DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD2#FFFFFF#000000##FFFFFF
##874DD21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#126BCF
Tritanopia (blue-blind)
#776A89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874dd2;
/* rgb */ color: rgb(135, 77, 210);
/* oklch */ color: oklch(55.5% 0.196 300.1);
Tailwind
colors: {
  custom: {
    50: '#af82e1',
    500: '#874dd2',
    950: '#000000',
  },
}
SCSS
$custom: #874dd2;
$custom-light: #af82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd2",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 266.165,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55467,
    "c": 0.19642,
    "h": 300.1
  },
  "luminance": 0.15112
}

Semantic roles & 50–950 ramp

primary
#874DD2
secondary
#C1D9A2
accent
#E3459E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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