#874CD6#874CD6

#874CD6 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.6% C 0.202 H 299.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#874CD6
RGBrgb(135, 76, 214)
HSLhsl(266, 63%, 57%)
HSVhsv(266, 64%, 84%)
CMYKcmyk(36.9%, 64.5%, 0%, 16.1%)
CIE-LABlab(45.87, 52.43, -61.93)
CIE-LCHlch(45.87, 81.14, 310.25°)
OKLaboklab(55.62% 0.0992 -0.1763)
OKLCHoklch(55.62% 0.202 299.4)
XYZxyz(24.7107, 15.1746, 65.2324)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CD6 #9BD64C
analogous
#4C56D6 #874CD6 #CC4CD6
triadic
#874CD6 #D6874C #4CD687
tetradic
#874CD6 #D64C56 #9BD64C #4CD6CC
square
#874CD6 #D64C56 #9BD64C #4CD6CC
split-complementary
#874CD6 #D6CC4C #56D64C
monochromatic
#4C1F88 #682BBA #874CD6 #A87EE1 #CAB0ED

Accessibility & contrast

On white

5.20
#874CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#874CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CD6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CD6#FFFFFF#000000##FFFFFF
##874CD61.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#756B8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874cd6;
/* rgb */ color: rgb(135, 76, 214);
/* oklch */ color: oklch(55.6% 0.202 299.4);
Tailwind
colors: {
  custom: {
    50: '#af81e3',
    500: '#874cd6',
    950: '#000000',
  },
}
SCSS
$custom: #874cd6;
$custom-light: #af81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#874cd6",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 265.652,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55616,
    "c": 0.20229,
    "h": 299.4
  },
  "luminance": 0.15175
}

Semantic roles & 50–950 ramp

primary
#874CD6
secondary
#C3DBA3
accent
#E642A0
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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