#874CCE#874CCE

#874CCE is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.193 H 301.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#874CCE
RGBrgb(135, 76, 206)
HSLhsl(267, 57%, 55%)
HSVhsv(267, 63%, 81%)
CMYKcmyk(34.5%, 63.1%, 0%, 19.2%)
CIE-LABlab(45.33, 50.43, -58.22)
CIE-LCHlch(45.33, 77.03, 310.90°)
OKLaboklab(55.05% 0.0999 -0.1654)
OKLCHoklch(55.05% 0.193 301.1)
XYZxyz(23.7140, 14.7759, 59.9832)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CCE #93CE4C
analogous
#4C52CE #874CCE #C84CCE
triadic
#874CCE #CE874C #4CCE87
tetradic
#874CCE #CE4C52 #93CE4C #4CCEC8
square
#874CCE #CE4C52 #93CE4C #4CCEC8
split-complementary
#874CCE #CEC84C #52CE4C
monochromatic
#4C227D #692FAD #874CCE #A77CDB #C7ACE8

Accessibility & contrast

On white

5.31
#874CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #874CCE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CCE#FFFFFF#000000##FFFFFF
##874CCE1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD2
Deuteranopia (green-blind)
#1A6BCB
Tritanopia (blue-blind)
#786886
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874cce;
/* rgb */ color: rgb(135, 76, 206);
/* oklch */ color: oklch(55.0% 0.193 301.1);
Tailwind
colors: {
  custom: {
    50: '#af81de',
    500: '#874cce',
    950: '#000000',
  },
}
SCSS
$custom: #874cce;
$custom-light: #af81de;
$custom-dark: #000000;
JSON
{
  "hex": "#874cce",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 206
  },
  "hsl": {
    "h": 267.231,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55048,
    "c": 0.19322,
    "h": 301.1
  },
  "luminance": 0.14776
}

Semantic roles & 50–950 ramp

primary
#874CCE
secondary
#BDD6A0
accent
#E0489B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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