#874DD6#874DD6

#874DD6 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.8% C 0.201 H 299.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#874DD6
RGBrgb(135, 77, 214)
HSLhsl(265, 63%, 57%)
HSVhsv(265, 64%, 84%)
CMYKcmyk(36.9%, 64%, 0%, 16.1%)
CIE-LABlab(46.06, 51.91, -61.62)
CIE-LCHlch(46.06, 80.58, 310.11°)
OKLaboklab(55.75% 0.0981 -0.1754)
OKLCHoklch(55.75% 0.201 299.2)
XYZxyz(24.7801, 15.3134, 65.2555)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DD6 #9CD64D
analogous
#4D58D6 #874DD6 #CB4DD6
triadic
#874DD6 #D6874D #4DD687
tetradic
#874DD6 #D64D58 #9CD64D #4DD6CB
square
#874DD6 #D64D58 #9CD64D #4DD6CB
split-complementary
#874DD6 #D6CB4D #58D64D
monochromatic
#4C2089 #682BBB #874DD6 #A97FE1 #CAB0ED

Accessibility & contrast

On white

5.17
#874DD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#874DD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DD6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DD6#FFFFFF#000000##FFFFFF
##874DD61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #874dd6;
/* rgb */ color: rgb(135, 77, 214);
/* oklch */ color: oklch(55.8% 0.201 299.2);
Tailwind
colors: {
  custom: {
    50: '#af82e3',
    500: '#874dd6',
    950: '#000000',
  },
}
SCSS
$custom: #874dd6;
$custom-light: #af82e3;
$custom-dark: #000000;
JSON
{
  "hex": "#874dd6",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 214
  },
  "hsl": {
    "h": 265.401,
    "s": 62.557,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55752,
    "c": 0.20098,
    "h": 299.2
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #874DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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