#874DDB#874DDB

#874DDB is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.1% C 0.207 H 298.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#874DDB
RGBrgb(135, 77, 219)
HSLhsl(265, 66%, 58%)
HSVhsv(265, 65%, 86%)
CMYKcmyk(38.4%, 64.8%, 0%, 14.1%)
CIE-LABlab(46.41, 53.18, -63.91)
CIE-LCHlch(46.41, 83.14, 309.76°)
OKLaboklab(56.11% 0.0977 -0.1821)
OKLCHoklch(56.11% 0.207 298.2)
XYZxyz(25.4285, 15.5728, 68.6702)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874DDB #A1DB4D
analogous
#4D5ADB #874DDB #CE4DDB
triadic
#874DDB #DB874D #4DDB87
tetradic
#874DDB #DB4D5A #A1DB4D #4DDBCE
square
#874DDB #DB4D5A #A1DB4D #4DDBCE
split-complementary
#874DDB #DBCE4D #5ADB4D
monochromatic
#4C1D90 #6727C3 #874DDB #A980E5 #CCB3F0

Accessibility & contrast

On white

5.10
#874DDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#874DDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874DDB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874DDB#FFFFFF#000000##FFFFFF
##874DDB1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#736E8D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874ddb;
/* rgb */ color: rgb(135, 77, 219);
/* oklch */ color: oklch(56.1% 0.207 298.2);
Tailwind
colors: {
  custom: {
    50: '#b082e7',
    500: '#874ddb',
    950: '#000000',
  },
}
SCSS
$custom: #874ddb;
$custom-light: #b082e7;
$custom-dark: #000000;
JSON
{
  "hex": "#874ddb",
  "rgb": {
    "r": 135,
    "g": 77,
    "b": 219
  },
  "hsl": {
    "h": 264.507,
    "s": 66.355,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56113,
    "c": 0.20665,
    "h": 298.2
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#874DDB
secondary
#C7DEA6
accent
#E93FA4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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