#874DD3#874DD3

#874DD3 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.5% C 0.198 H 299.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#874DD3
RGBrgb(135, 77, 211)
HSLhsl(266, 60%, 56%)
HSVhsv(266, 64%, 83%)
CMYKcmyk(36%, 63.5%, 0%, 17.3%)
CIE-LABlab(45.85, 51.16, -60.24)
CIE-LCHlch(45.85, 79.03, 310.34°)
OKLaboklab(55.54% 0.0984 -0.1713)
OKLCHoklch(55.54% 0.198 299.9)
XYZxyz(24.4005, 15.1616, 63.2563)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD3 #99D34D
analogous
#4D56D3 #874DD3 #CA4DD3
triadic
#874DD3 #D3874D #4DD387
tetradic
#874DD3 #D34D56 #99D34D #4DD3CA
square
#874DD3 #D34D56 #99D34D #4DD3CA
split-complementary
#874DD3 #D3CA4D #56D34D
monochromatic
#4C2185 #682DB6 #874DD3 #A87EDF #C9AFEB

Accessibility & contrast

On white

5.21
#874DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#874DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD3#FFFFFF#000000##FFFFFF
##874DD31.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#0E6CD0
Tritanopia (blue-blind)
#766B89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874dd3;
/* rgb */ color: rgb(135, 77, 211);
/* oklch */ color: oklch(55.5% 0.198 299.9);
Tailwind
colors: {
  custom: {
    50: '#af82e1',
    500: '#874dd3',
    950: '#000000',
  },
}
SCSS
$custom: #874dd3;
$custom-light: #af82e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd3",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 211
  },
  "hsl": {
    "h": 265.97,
    "s": 60.36,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55538,
    "c": 0.19756,
    "h": 299.9
  },
  "luminance": 0.15162
}

Semantic roles & 50–950 ramp

primary
#874DD3
secondary
#C2D9A2
accent
#E4449F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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