#874DD5#874DD5

#874DD5 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.7% C 0.200 H 299.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#874DD5
RGBrgb(135, 77, 213)
HSLhsl(266, 62%, 57%)
HSVhsv(266, 64%, 84%)
CMYKcmyk(36.6%, 63.8%, 0%, 16.5%)
CIE-LABlab(45.99, 51.66, -61.16)
CIE-LCHlch(45.99, 80.06, 310.19°)
OKLaboklab(55.68% 0.0982 -0.174)
OKLCHoklch(55.68% 0.2 299.4)
XYZxyz(24.6528, 15.2625, 64.5850)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD5 #9BD54D
analogous
#4D57D5 #874DD5 #CB4DD5
triadic
#874DD5 #D5874D #4DD587
tetradic
#874DD5 #D54D57 #9BD54D #4DD5CB
square
#874DD5 #D54D57 #9BD54D #4DD5CB
split-complementary
#874DD5 #D5CB4D #57D54D
monochromatic
#4C2088 #682CB9 #874DD5 #A87FE1 #CAB0EC

Accessibility & contrast

On white

5.18
#874DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#874DD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD5#FFFFFF#000000##FFFFFF
##874DD51.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#046CD2
Tritanopia (blue-blind)
#766B8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874dd5;
/* rgb */ color: rgb(135, 77, 213);
/* oklch */ color: oklch(55.7% 0.200 299.4);
Tailwind
colors: {
  custom: {
    50: '#af82e3',
    500: '#874dd5',
    950: '#000000',
  },
}
SCSS
$custom: #874dd5;
$custom-light: #af82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd5",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 213
  },
  "hsl": {
    "h": 265.588,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5568,
    "c": 0.19984,
    "h": 299.4
  },
  "luminance": 0.15263
}

Semantic roles & 50–950 ramp

primary
#874DD5
secondary
#C3DBA3
accent
#E543A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #874DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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