#875FEC#875FEC

#875FEC is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 59.9% C 0.203 H 292.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#875FEC
RGBrgb(135, 95, 236)
HSLhsl(257, 79%, 65%)
HSVhsv(257, 60%, 93%)
CMYKcmyk(42.8%, 59.7%, 0%, 7.5%)
CIE-LABlab(51.14, 48.06, -65.86)
CIE-LCHlch(51.14, 81.53, 306.12°)
OKLaboklab(59.92% 0.0768 -0.1879)
OKLCHoklch(59.92% 0.203 292.2)
XYZxyz(29.2201, 19.3906, 81.5438)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#875FEC #C4EC5F
analogous
#5F7EEC #875FEC #CD5FEC
triadic
#875FEC #EC875F #5FEC87
tetradic
#875FEC #EC5F7E #C4EC5F #5FECCD
square
#875FEC #EC5F7E #C4EC5F #5FECCD
split-complementary
#875FEC #ECCD5F #7EEC5F
monochromatic
#4516BA #5E28E6 #875FEC #B096F2 #D9CCF9

Accessibility & contrast

On white

4.30
#875FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#875FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #875FEC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##875FEC#FFFFFF#000000##000000
##875FEC1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0077E9
Tritanopia (blue-blind)
#6A7F9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #875fec;
/* rgb */ color: rgb(135, 95, 236);
/* oklch */ color: oklch(59.9% 0.203 292.2);
Tailwind
colors: {
  custom: {
    50: '#b08ef3',
    500: '#875fec',
    950: '#000000',
  },
}
SCSS
$custom: #875fec;
$custom-light: #b08ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#875fec",
  "rgb": {
    "r": 135,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 257.021,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59917,
    "c": 0.20297,
    "h": 292.2
  },
  "luminance": 0.19391
}

Semantic roles & 50–950 ramp

primary
#875FEC
secondary
#DEEBBB
accent
#DB0AA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #875FEC

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

Preview Lab → · Contrast checker → · Palette generator →

#875FEC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva