#874FDB#874FDB

#874FDB is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.204 H 297.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#874FDB
RGBrgb(135, 79, 219)
HSLhsl(264, 66%, 58%)
HSVhsv(264, 64%, 86%)
CMYKcmyk(38.4%, 63.9%, 0%, 14.1%)
CIE-LABlab(46.79, 52.15, -63.30)
CIE-LCHlch(46.79, 82.01, 309.48°)
OKLaboklab(56.39% 0.0955 -0.1803)
OKLCHoklch(56.39% 0.204 297.9)
XYZxyz(25.5706, 15.8570, 68.7176)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FDB #A3DB4F
analogous
#4F5DDB #874FDB #CD4FDB
triadic
#874FDB #DB874F #4FDB87
tetradic
#874FDB #DB4F5D #A3DB4F #4FDBCD
square
#874FDB #DB4F5D #A3DB4F #4FDBCD
split-complementary
#874FDB #DBCD4F #5DDB4F
monochromatic
#4C1E92 #6728C5 #874FDB #AA82E5 #CCB5F0

Accessibility & contrast

On white

5.03
#874FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#874FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FDB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FDB#FFFFFF#000000##FFFFFF
##874FDB1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#736F8E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874fdb;
/* rgb */ color: rgb(135, 79, 219);
/* oklch */ color: oklch(56.4% 0.204 297.9);
Tailwind
colors: {
  custom: {
    50: '#b083e7',
    500: '#874fdb',
    950: '#000000',
  },
}
SCSS
$custom: #874fdb;
$custom-light: #b083e7;
$custom-dark: #000000;
JSON
{
  "hex": "#874fdb",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 264,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56386,
    "c": 0.20405,
    "h": 297.9
  },
  "luminance": 0.15857
}

Semantic roles & 50–950 ramp

primary
#874FDB
secondary
#C8DFA7
accent
#E93FA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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