#874BDF#874BDF

#874BDF is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.214 H 297.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#874BDF
RGBrgb(135, 75, 223)
HSLhsl(264, 70%, 58%)
HSVhsv(264, 66%, 87%)
CMYKcmyk(39.5%, 66.4%, 0%, 12.5%)
CIE-LABlab(46.33, 55.20, -66.32)
CIE-LCHlch(46.33, 86.29, 309.77°)
OKLaboklab(56.14% 0.0993 -0.1892)
OKLCHoklch(56.14% 0.214 297.7)
XYZxyz(25.8236, 15.5103, 71.4310)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BDF #A3DF4B
analogous
#4B59DF #874BDF #D14BDF
triadic
#874BDF #DF874B #4BDF87
tetradic
#874BDF #DF4B59 #A3DF4B #4BDFD1
square
#874BDF #DF4B59 #A3DF4B #4BDFD1
split-complementary
#874BDF #DFD14B #59DF4B
monochromatic
#4C1B95 #6724C9 #874BDF #AA7FE8 #CCB3F1

Accessibility & contrast

On white

5.12
#874BDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#874BDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BDF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BDF#FFFFFF#000000##FFFFFF
##874BDF1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#726E8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874bdf;
/* rgb */ color: rgb(135, 75, 223);
/* oklch */ color: oklch(56.1% 0.214 297.7);
Tailwind
colors: {
  custom: {
    50: '#b081ea',
    500: '#874bdf',
    950: '#000000',
  },
}
SCSS
$custom: #874bdf;
$custom-light: #b081ea;
$custom-dark: #000000;
JSON
{
  "hex": "#874bdf",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 223
  },
  "hsl": {
    "h": 264.324,
    "s": 69.811,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56143,
    "c": 0.21368,
    "h": 297.7
  },
  "luminance": 0.15511
}

Semantic roles & 50–950 ramp

primary
#874BDF
secondary
#C8E0A6
accent
#ED3BA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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