#7856F1#7856F1

#7856F1 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.221 H 287.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7856F1
RGBrgb(120, 86, 241)
HSLhsl(253, 85%, 64%)
HSVhsv(253, 64%, 95%)
CMYKcmyk(50.2%, 64.3%, 0%, 5.5%)
CIE-LABlab(48.26, 51.49, -73.41)
CIE-LCHlch(48.26, 89.67, 305.05°)
OKLaboklab(57.6% 0.0661 -0.2105)
OKLCHoklch(57.6% 0.221 287.4)
XYZxyz(26.9460, 16.9982, 85.0632)
Luminance0.1700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856F1 #CFF156
analogous
#5682F1 #7856F1 #C556F1
triadic
#7856F1 #F17856 #56F178
tetradic
#7856F1 #F15682 #CFF156 #56F1C5
square
#7856F1 #F15682 #CFF156 #56F1C5
split-complementary
#7856F1 #F1C556 #82F156
monochromatic
#3610BD #4B1DEC #7856F1 #A58FF6 #D2C7FA

Accessibility & contrast

On white

4.77
#7856F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7856F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856F1
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856F1#FFFFFF#000000##FFFFFF
##7856F11.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F6
Deuteranopia (green-blind)
#006EEE
Tritanopia (blue-blind)
#4C7C9C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7856f1;
/* rgb */ color: rgb(120, 86, 241);
/* oklch */ color: oklch(57.6% 0.221 287.4);
Tailwind
colors: {
  custom: {
    50: '#a888f7',
    500: '#7856f1',
    950: '#000000',
  },
}
SCSS
$custom: #7856f1;
$custom-light: #a888f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7856f1",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 241
  },
  "hsl": {
    "h": 253.161,
    "s": 84.699,
    "l": 64.118
  },
  "oklch": {
    "l": 0.576,
    "c": 0.22067,
    "h": 287.4
  },
  "luminance": 0.17
}

Semantic roles & 50–950 ramp

primary
#7856F1
secondary
#E1ECB6
accent
#E104B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7856F1

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

Preview Lab → · Contrast checker → · Palette generator →

#7856F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva