#874DD7#874DD7

#874DD7 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.8% C 0.202 H 299.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#874DD7
RGBrgb(135, 77, 215)
HSLhsl(265, 63%, 57%)
HSVhsv(265, 64%, 84%)
CMYKcmyk(37.2%, 64.2%, 0%, 15.7%)
CIE-LABlab(46.13, 52.17, -62.08)
CIE-LCHlch(46.13, 81.09, 310.04°)
OKLaboklab(55.82% 0.0981 -0.1767)
OKLCHoklch(55.82% 0.202 299)
XYZxyz(24.9082, 15.3647, 65.9302)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD7 #9DD74D
analogous
#4D58D7 #874DD7 #CC4DD7
triadic
#874DD7 #D7874D #4DD787
tetradic
#874DD7 #D74D58 #9DD74D #4DD7CC
square
#874DD7 #D74D58 #9DD74D #4DD7CC
split-complementary
#874DD7 #D7CC4D #58D74D
monochromatic
#4C1F8A #682ABC #874DD7 #A97FE2 #CAB1ED

Accessibility & contrast

On white

5.16
#874DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#874DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD7#FFFFFF#000000##FFFFFF
##874DD71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#756C8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #874dd7;
/* rgb */ color: rgb(135, 77, 215);
/* oklch */ color: oklch(55.8% 0.202 299.0);
Tailwind
colors: {
  custom: {
    50: '#af82e4',
    500: '#874dd7',
    950: '#000000',
  },
}
SCSS
$custom: #874dd7;
$custom-light: #af82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd7",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 215
  },
  "hsl": {
    "h": 265.217,
    "s": 63.303,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55824,
    "c": 0.20212,
    "h": 299
  },
  "luminance": 0.15365
}

Semantic roles & 50–950 ramp

primary
#874DD7
secondary
#C4DCA4
accent
#E641A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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