#874BE8#874BE8

#874BE8 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.8% C 0.224 H 296.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#874BE8
RGBrgb(135, 75, 232)
HSLhsl(263, 77%, 60%)
HSVhsv(263, 68%, 91%)
CMYKcmyk(41.8%, 67.7%, 0%, 9%)
CIE-LABlab(46.99, 57.47, -70.35)
CIE-LCHlch(46.99, 90.84, 309.25°)
OKLaboklab(56.82% 0.098 -0.201)
OKLCHoklch(56.82% 0.224 296)
XYZxyz(27.0694, 16.0087, 77.9921)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874BE8 #ACE84B
analogous
#4B5DE8 #874BE8 #D64BE8
triadic
#874BE8 #E8874B #4BE887
tetradic
#874BE8 #E84B5D #ACE84B #4BE8D6
square
#874BE8 #E84B5D #ACE84B #4BE8D6
split-complementary
#874BE8 #E8D64B #5DE84B
monochromatic
#4B15A4 #641CDA #874BE8 #AB81EF #CFB8F6

Accessibility & contrast

On white

5.00
#874BE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#874BE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874BE8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874BE8#FFFFFF#000000##FFFFFF
##874BE81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#6E7194
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #874be8;
/* rgb */ color: rgb(135, 75, 232);
/* oklch */ color: oklch(56.8% 0.224 296.0);
Tailwind
colors: {
  custom: {
    50: '#b181f0',
    500: '#874be8',
    950: '#000000',
  },
}
SCSS
$custom: #874be8;
$custom-light: #b181f0;
$custom-dark: #000000;
JSON
{
  "hex": "#874be8",
  "rgb": {
    "r": 135,
    "g": 75,
    "b": 232
  },
  "hsl": {
    "h": 262.93,
    "s": 77.34,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56823,
    "c": 0.22368,
    "h": 296
  },
  "luminance": 0.16009
}

Semantic roles & 50–950 ramp

primary
#874BE8
secondary
#CEE6A9
accent
#DA0C8B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #874BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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