#874FE8#874FE8

#874FE8 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.219 H 295.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#874FE8
RGBrgb(135, 79, 232)
HSLhsl(262, 77%, 61%)
HSVhsv(262, 66%, 91%)
CMYKcmyk(41.8%, 65.9%, 0%, 9%)
CIE-LABlab(47.71, 55.48, -69.17)
CIE-LCHlch(47.71, 88.67, 308.73°)
OKLaboklab(57.34% 0.0941 -0.1976)
OKLCHoklch(57.34% 0.219 295.5)
XYZxyz(27.3493, 16.5684, 78.0854)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FE8 #B0E84F
analogous
#4F63E8 #874FE8 #D34FE8
triadic
#874FE8 #E8874F #4FE887
tetradic
#874FE8 #E84F63 #B0E84F #4FE8D3
square
#874FE8 #E84F63 #B0E84F #4FE8D3
split-complementary
#874FE8 #E8D34F #63E84F
monochromatic
#4B16A7 #631DDD #874FE8 #AC85EF #D1BBF6

Accessibility & contrast

On white

4.87
#874FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#874FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FE8
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FE8#FFFFFF#000000##FFFFFF
##874FE81.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006FE5
Tritanopia (blue-blind)
#6D7395
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #874fe8;
/* rgb */ color: rgb(135, 79, 232);
/* oklch */ color: oklch(57.3% 0.219 295.5);
Tailwind
colors: {
  custom: {
    50: '#b184f0',
    500: '#874fe8',
    950: '#000000',
  },
}
SCSS
$custom: #874fe8;
$custom-light: #b184f0;
$custom-dark: #000000;
JSON
{
  "hex": "#874fe8",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 261.961,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57344,
    "c": 0.21884,
    "h": 295.5
  },
  "luminance": 0.16569
}

Semantic roles & 50–950 ramp

primary
#874FE8
secondary
#D1E6AD
accent
#D90C8E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #874FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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