#874CCF#874CCF

#874CCF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.1% C 0.194 H 300.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#874CCF
RGBrgb(135, 76, 207)
HSLhsl(267, 58%, 55%)
HSVhsv(267, 63%, 81%)
CMYKcmyk(34.8%, 63.3%, 0%, 18.8%)
CIE-LABlab(45.39, 50.68, -58.69)
CIE-LCHlch(45.39, 77.54, 310.81°)
OKLaboklab(55.12% 0.0998 -0.1667)
OKLCHoklch(55.12% 0.194 300.9)
XYZxyz(23.8359, 14.8246, 60.6251)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CCF #94CF4C
analogous
#4C52CF #874CCF #C84CCF
triadic
#874CCF #CF874C #4CCF87
tetradic
#874CCF #CF4C52 #94CF4C #4CCFC8
square
#874CCF #CF4C52 #94CF4C #4CCFC8
split-complementary
#874CCF #CFC84C #52CF4C
monochromatic
#4C227F #692FAF #874CCF #A77CDC #C8ADE9

Accessibility & contrast

On white

5.30
#874CCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#874CCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CCF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CCF#FFFFFF#000000##FFFFFF
##874CCF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#186BCC
Tritanopia (blue-blind)
#786987
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ccf;
/* rgb */ color: rgb(135, 76, 207);
/* oklch */ color: oklch(55.1% 0.194 300.9);
Tailwind
colors: {
  custom: {
    50: '#af81de',
    500: '#874ccf',
    950: '#000000',
  },
}
SCSS
$custom: #874ccf;
$custom-light: #af81de;
$custom-dark: #000000;
JSON
{
  "hex": "#874ccf",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 207
  },
  "hsl": {
    "h": 267.023,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55118,
    "c": 0.19435,
    "h": 300.9
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#874CCF
secondary
#BED7A0
accent
#E1479C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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