#874FE2#874FE2

#874FE2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.9% C 0.212 H 296.6°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#874FE2
RGBrgb(135, 79, 226)
HSLhsl(263, 72%, 60%)
HSVhsv(263, 65%, 89%)
CMYKcmyk(40.3%, 65%, 0%, 11.4%)
CIE-LABlab(47.28, 53.93, -66.48)
CIE-LCHlch(47.28, 85.61, 309.05°)
OKLaboklab(56.9% 0.0948 -0.1897)
OKLCHoklch(56.9% 0.212 296.6)
XYZxyz(26.5115, 16.2333, 73.6733)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FE2 #AAE24F
analogous
#4F61E2 #874FE2 #D04FE2
triadic
#874FE2 #E2874F #4FE287
tetradic
#874FE2 #E24F61 #AAE24F #4FE2D0
square
#874FE2 #E24F61 #AAE24F #4FE2D0
split-complementary
#874FE2 #E2D04F #61E24F
monochromatic
#4C1A9D #6522D1 #874FE2 #AB84EB #CFB8F3

Accessibility & contrast

On white

4.94
#874FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#874FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FE2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FE2#FFFFFF#000000##FFFFFF
##874FE21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006EDF
Tritanopia (blue-blind)
#707192
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #874fe2;
/* rgb */ color: rgb(135, 79, 226);
/* oklch */ color: oklch(56.9% 0.212 296.6);
Tailwind
colors: {
  custom: {
    50: '#b084ec',
    500: '#874fe2',
    950: '#000000',
  },
}
SCSS
$custom: #874fe2;
$custom-light: #b084ec;
$custom-dark: #000000;
JSON
{
  "hex": "#874fe2",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 262.857,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56897,
    "c": 0.21204,
    "h": 296.6
  },
  "luminance": 0.16234
}

Semantic roles & 50–950 ramp

primary
#874FE2
secondary
#CDE3AA
accent
#EE39A9
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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