#874DC7#874DC7

#874DC7 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.184 H 302.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#874DC7
RGBrgb(135, 77, 199)
HSLhsl(269, 52%, 54%)
HSVhsv(269, 61%, 78%)
CMYKcmyk(32.2%, 61.3%, 0%, 22%)
CIE-LABlab(45.06, 48.19, -54.61)
CIE-LCHlch(45.06, 72.83, 311.42°)
OKLaboklab(54.71% 0.0991 -0.1548)
OKLCHoklch(54.71% 0.184 302.6)
XYZxyz(22.9520, 14.5822, 55.6272)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DC7 #8DC74D
analogous
#4D50C7 #874DC7 #C44DC7
triadic
#874DC7 #C7874D #4DC787
tetradic
#874DC7 #C74D50 #8DC74D #4DC7C4
square
#874DC7 #C74D50 #8DC74D #4DC7C4
split-complementary
#874DC7 #C7C44D #50C74D
monochromatic
#4B2575 #6933A3 #874DC7 #A67CD6 #C6AAE4

Accessibility & contrast

On white

5.36
#874DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#874DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DC7
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DC7#FFFFFF#000000##FFFFFF
##874DC71.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#2A6AC4
Tritanopia (blue-blind)
#7B6783
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874dc7;
/* rgb */ color: rgb(135, 77, 199);
/* oklch */ color: oklch(54.7% 0.184 302.6);
Tailwind
colors: {
  custom: {
    50: '#ae82d9',
    500: '#874dc7',
    950: '#000000',
  },
}
SCSS
$custom: #874dc7;
$custom-light: #ae82d9;
$custom-dark: #000000;
JSON
{
  "hex": "#874dc7",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 268.525,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54705,
    "c": 0.18382,
    "h": 302.6
  },
  "luminance": 0.14582
}

Semantic roles & 50–950 ramp

primary
#874DC7
secondary
#B9D29E
accent
#DC4C97
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #874DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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