#874FEB#874FEB

#874FEB is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.6% C 0.222 H 294.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#874FEB
RGBrgb(135, 79, 235)
HSLhsl(262, 80%, 62%)
HSVhsv(262, 66%, 92%)
CMYKcmyk(42.6%, 66.4%, 0%, 7.8%)
CIE-LABlab(47.93, 56.25, -70.51)
CIE-LCHlch(47.93, 90.20, 308.58°)
OKLaboklab(57.57% 0.0937 -0.2015)
OKLCHoklch(57.57% 0.222 294.9)
XYZxyz(27.7790, 16.7403, 80.3488)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FEB #B3EB4F
analogous
#4F65EB #874FEB #D54FEB
triadic
#874FEB #EB874F #4FEB87
tetradic
#874FEB #EB4F65 #B3EB4F #4FEBD5
square
#874FEB #EB4F65 #B3EB4F #4FEBD5
split-complementary
#874FEB #EBD54F #65EB4F
monochromatic
#4A14AC #621AE3 #874FEB #AC86F1 #D2BDF7

Accessibility & contrast

On white

4.83
#874FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#874FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FEB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FEB#FFFFFF#000000##FFFFFF
##874FEB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006FE8
Tritanopia (blue-blind)
#6C7597
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #874feb;
/* rgb */ color: rgb(135, 79, 235);
/* oklch */ color: oklch(57.6% 0.222 294.9);
Tailwind
colors: {
  custom: {
    50: '#b184f2',
    500: '#874feb',
    950: '#000000',
  },
}
SCSS
$custom: #874feb;
$custom-light: #b184f2;
$custom-dark: #000000;
JSON
{
  "hex": "#874feb",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 261.538,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5757,
    "c": 0.22223,
    "h": 294.9
  },
  "luminance": 0.16741
}

Semantic roles & 50–950 ramp

primary
#874FEB
secondary
#D3E8AE
accent
#DC0A90
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #874FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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