#874FD2#874FD2

#874FD2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.194 H 299.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#874FD2
RGBrgb(135, 79, 210)
HSLhsl(266, 59%, 57%)
HSVhsv(266, 62%, 82%)
CMYKcmyk(35.7%, 62.4%, 0%, 17.6%)
CIE-LABlab(46.17, 49.87, -59.15)
CIE-LCHlch(46.17, 77.37, 310.13°)
OKLaboklab(55.75% 0.0962 -0.1681)
OKLCHoklch(55.75% 0.194 299.8)
XYZxyz(24.4177, 15.3958, 62.6455)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FD2 #9AD24F
analogous
#4F59D2 #874FD2 #C94FD2
triadic
#874FD2 #D2874F #4FD287
tetradic
#874FD2 #D24F59 #9AD24F #4FD2C9
square
#874FD2 #D24F59 #9AD24F #4FD2C9
split-complementary
#874FD2 #D2C94F #59D24F
monochromatic
#4C2285 #682EB5 #874FD2 #A880DE #C9B0EB

Accessibility & contrast

On white

5.15
#874FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#874FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FD2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FD2#FFFFFF#000000##FFFFFF
##874FD21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#186CCF
Tritanopia (blue-blind)
#776C89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874fd2;
/* rgb */ color: rgb(135, 79, 210);
/* oklch */ color: oklch(55.7% 0.194 299.8);
Tailwind
colors: {
  custom: {
    50: '#af83e1',
    500: '#874fd2',
    950: '#000000',
  },
}
SCSS
$custom: #874fd2;
$custom-light: #af83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874fd2",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 265.649,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55746,
    "c": 0.19371,
    "h": 299.8
  },
  "luminance": 0.15396
}

Semantic roles & 50–950 ramp

primary
#874FD2
secondary
#C2D9A4
accent
#E2459F
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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