#874FE5#874FE5

#874FE5 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.215 H 296.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#874FE5
RGBrgb(135, 79, 229)
HSLhsl(262, 74%, 60%)
HSVhsv(262, 66%, 90%)
CMYKcmyk(41%, 65.5%, 0%, 10.2%)
CIE-LABlab(47.49, 54.70, -67.83)
CIE-LCHlch(47.49, 87.14, 308.89°)
OKLaboklab(57.12% 0.0944 -0.1936)
OKLCHoklch(57.12% 0.215 296)
XYZxyz(26.9268, 16.3994, 75.8603)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FE5 #ADE54F
analogous
#4F62E5 #874FE5 #D24FE5
triadic
#874FE5 #E5874F #4FE587
tetradic
#874FE5 #E54F62 #ADE54F #4FE5D2
square
#874FE5 #E54F62 #ADE54F #4FE5D2
split-complementary
#874FE5 #E5D24F #62E54F
monochromatic
#4B18A2 #6420D7 #874FE5 #AB84ED #D0BAF5

Accessibility & contrast

On white

4.91
#874FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#874FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FE5
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FE5#FFFFFF#000000##FFFFFF
##874FE51.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#6F7293
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #874fe5;
/* rgb */ color: rgb(135, 79, 229);
/* oklch */ color: oklch(57.1% 0.215 296.0);
Tailwind
colors: {
  custom: {
    50: '#b184ee',
    500: '#874fe5',
    950: '#000000',
  },
}
SCSS
$custom: #874fe5;
$custom-light: #b184ee;
$custom-dark: #000000;
JSON
{
  "hex": "#874fe5",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 229
  },
  "hsl": {
    "h": 262.4,
    "s": 74.257,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57119,
    "c": 0.21545,
    "h": 296
  },
  "luminance": 0.164
}

Semantic roles & 50–950 ramp

primary
#874FE5
secondary
#CFE5AB
accent
#D60F8C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #874FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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