#874BE2#874BE2

#874BE2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.4% C 0.217 H 297.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#874BE2
RGBrgb(135, 75, 226)
HSLhsl(264, 72%, 59%)
HSVhsv(264, 67%, 89%)
CMYKcmyk(40.3%, 66.8%, 0%, 11.4%)
CIE-LABlab(46.54, 55.95, -67.67)
CIE-LCHlch(46.54, 87.81, 309.58°)
OKLaboklab(56.37% 0.0989 -0.1932)
OKLCHoklch(56.37% 0.217 297.1)
XYZxyz(26.2317, 15.6736, 73.5800)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BE2 #A6E24B
analogous
#4B5BE2 #874BE2 #D34BE2
triadic
#874BE2 #E2874B #4BE287
tetradic
#874BE2 #E24B5B #A6E24B #4BE2D3
square
#874BE2 #E24B5B #A6E24B #4BE2D3
split-complementary
#874BE2 #E2D34B #5BE24B
monochromatic
#4C199A #6621CF #874BE2 #AA80EA #CDB4F3

Accessibility & contrast

On white

5.08
#874BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#874BE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BE2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BE2#FFFFFF#000000##FFFFFF
##874BE21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#706F90
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #874be2;
/* rgb */ color: rgb(135, 75, 226);
/* oklch */ color: oklch(56.4% 0.217 297.1);
Tailwind
colors: {
  custom: {
    50: '#b081ec',
    500: '#874be2',
    950: '#000000',
  },
}
SCSS
$custom: #874be2;
$custom-light: #b081ec;
$custom-dark: #000000;
JSON
{
  "hex": "#874be2",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 226
  },
  "hsl": {
    "h": 263.841,
    "s": 72.249,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.21702,
    "h": 297.1
  },
  "luminance": 0.15674
}

Semantic roles & 50–950 ramp

primary
#874BE2
secondary
#CAE2A7
accent
#EF39A7
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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