#874BD3#874BD3

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

Color values

HEX#874BD3
RGBrgb(135, 75, 211)
HSLhsl(266, 61%, 56%)
HSVhsv(266, 64%, 83%)
CMYKcmyk(36%, 64.5%, 0%, 17.3%)
CIE-LABlab(45.48, 52.19, -60.85)
CIE-LCHlch(45.48, 80.16, 310.62°)
OKLaboklab(55.27% 0.1006 -0.1731)
OKLCHoklch(55.27% 0.2 300.2)
XYZxyz(24.2627, 14.8860, 63.2104)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BD3 #97D34B
analogous
#4B53D3 #874BD3 #CB4BD3
triadic
#874BD3 #D3874B #4BD387
tetradic
#874BD3 #D34B53 #97D34B #4BD3CB
square
#874BD3 #D34B53 #97D34B #4BD3CB
split-complementary
#874BD3 #D3CB4B #53D34B
monochromatic
#4C2083 #682CB5 #874BD3 #A87CDF #C9ADEB

Accessibility & contrast

On white

5.28
#874BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#874BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BD3
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BD3#FFFFFF#000000##FFFFFF
##874BD31.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#036BD0
Tritanopia (blue-blind)
#766988
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #874bd3;
/* rgb */ color: rgb(135, 75, 211);
/* oklch */ color: oklch(55.3% 0.200 300.2);
Tailwind
colors: {
  custom: {
    50: '#af81e1',
    500: '#874bd3',
    950: '#000000',
  },
}
SCSS
$custom: #874bd3;
$custom-light: #af81e1;
$custom-dark: #000000;
JSON
{
  "hex": "#874bd3",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 211
  },
  "hsl": {
    "h": 266.471,
    "s": 60.714,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55266,
    "c": 0.20022,
    "h": 300.2
  },
  "luminance": 0.14886
}

Semantic roles & 50–950 ramp

primary
#874BD3
secondary
#C0D9A1
accent
#E4449D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #874BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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