#874DC9#874DC9

#874DC9 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.186 H 302.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#874DC9
RGBrgb(135, 77, 201)
HSLhsl(268, 53%, 55%)
HSVhsv(268, 62%, 79%)
CMYKcmyk(32.8%, 61.7%, 0%, 21.2%)
CIE-LABlab(45.19, 48.68, -55.56)
CIE-LCHlch(45.19, 73.87, 311.22°)
OKLaboklab(54.84% 0.0991 -0.1576)
OKLCHoklch(54.84% 0.186 302.2)
XYZxyz(23.1857, 14.6756, 56.8582)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DC9 #8FC94D
analogous
#4D51C9 #874DC9 #C54DC9
triadic
#874DC9 #C9874D #4DC987
tetradic
#874DC9 #C94D51 #8FC94D #4DC9C5
square
#874DC9 #C94D51 #8FC94D #4DC9C5
split-complementary
#874DC9 #C9C54D #51C94D
monochromatic
#4B2477 #6932A6 #874DC9 #A77CD7 #C6ABE5

Accessibility & contrast

On white

5.34
#874DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#874DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DC9
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DC9#FFFFFF#000000##FFFFFF
##874DC91.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACD
Deuteranopia (green-blind)
#266AC6
Tritanopia (blue-blind)
#7A6784
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874dc9;
/* rgb */ color: rgb(135, 77, 201);
/* oklch */ color: oklch(54.8% 0.186 302.2);
Tailwind
colors: {
  custom: {
    50: '#ae82da',
    500: '#874dc9',
    950: '#000000',
  },
}
SCSS
$custom: #874dc9;
$custom-light: #ae82da;
$custom-dark: #000000;
JSON
{
  "hex": "#874dc9",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 201
  },
  "hsl": {
    "h": 268.065,
    "s": 53.448,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54842,
    "c": 0.18612,
    "h": 302.2
  },
  "luminance": 0.14676
}

Semantic roles & 50–950 ramp

primary
#874DC9
secondary
#BBD39F
accent
#DD4B99
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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