#874BD4#874BD4

#874BD4 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.3% C 0.201 H 300.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#874BD4
RGBrgb(135, 75, 212)
HSLhsl(266, 61%, 56%)
HSVhsv(266, 65%, 83%)
CMYKcmyk(36.3%, 64.6%, 0%, 16.9%)
CIE-LABlab(45.55, 52.44, -61.31)
CIE-LCHlch(45.55, 80.67, 310.54°)
OKLaboklab(55.34% 0.1005 -0.1745)
OKLCHoklch(55.34% 0.201 300)
XYZxyz(24.3885, 14.9363, 63.8727)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BD4 #98D44B
analogous
#4B54D4 #874BD4 #CB4BD4
triadic
#874BD4 #D4874B #4BD487
tetradic
#874BD4 #D44B54 #98D44B #4BD4CB
square
#874BD4 #D44B54 #98D44B #4BD4CB
split-complementary
#874BD4 #D4CB4B #54D44B
monochromatic
#4C2085 #682CB6 #874BD4 #A87CE0 #C9AEEC

Accessibility & contrast

On white

5.27
#874BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#874BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BD4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BD4#FFFFFF#000000##FFFFFF
##874BD41.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#006BD1
Tritanopia (blue-blind)
#766A89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874bd4;
/* rgb */ color: rgb(135, 75, 212);
/* oklch */ color: oklch(55.3% 0.201 300.0);
Tailwind
colors: {
  custom: {
    50: '#af81e2',
    500: '#874bd4',
    950: '#000000',
  },
}
SCSS
$custom: #874bd4;
$custom-light: #af81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#874bd4",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 212
  },
  "hsl": {
    "h": 266.277,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55337,
    "c": 0.20135,
    "h": 300
  },
  "luminance": 0.14937
}

Semantic roles & 50–950 ramp

primary
#874BD4
secondary
#C1DAA1
accent
#E5439E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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