#7856F2#7856F2

#7856F2 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.222 H 287.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7856F2
RGBrgb(120, 86, 242)
HSLhsl(253, 86%, 64%)
HSVhsv(253, 64%, 95%)
CMYKcmyk(50.4%, 64.5%, 0%, 5.1%)
CIE-LABlab(48.33, 51.77, -73.85)
CIE-LCHlch(48.33, 90.19, 305.03°)
OKLaboklab(57.68% 0.066 -0.2118)
OKLCHoklch(57.68% 0.222 287.3)
XYZxyz(27.0958, 17.0582, 85.8520)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856F2 #D0F256
analogous
#5682F2 #7856F2 #C656F2
triadic
#7856F2 #F27856 #56F278
tetradic
#7856F2 #F25682 #D0F256 #56F2C6
square
#7856F2 #F25682 #D0F256 #56F2C6
split-complementary
#7856F2 #F2C656 #82F256
monochromatic
#350FBF #4B1DEE #7856F2 #A58FF6 #D3C8FB

Accessibility & contrast

On white

4.76
#7856F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7856F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856F2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856F2#FFFFFF#000000##FFFFFF
##7856F21.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#4B7C9D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7856f2;
/* rgb */ color: rgb(120, 86, 242);
/* oklch */ color: oklch(57.7% 0.222 287.3);
Tailwind
colors: {
  custom: {
    50: '#a988f7',
    500: '#7856f2',
    950: '#000000',
  },
}
SCSS
$custom: #7856f2;
$custom-light: #a988f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7856f2",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 253.077,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57678,
    "c": 0.22187,
    "h": 287.3
  },
  "luminance": 0.17059
}

Semantic roles & 50–950 ramp

primary
#7856F2
secondary
#E1EDB7
accent
#E203B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7856F2

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

Preview Lab → · Contrast checker → · Palette generator →

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