#7856CA#7856CA

#7856CA is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.7% C 0.173 H 293.4°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7856CA
RGBrgb(120, 86, 202)
HSLhsl(258, 52%, 56%)
HSVhsv(258, 57%, 79%)
CMYKcmyk(40.6%, 57.4%, 0%, 20.8%)
CIE-LABlab(45.51, 40.59, -55.69)
CIE-LCHlch(45.51, 68.92, 306.09°)
OKLaboklab(54.73% 0.0685 -0.1584)
OKLCHoklch(54.73% 0.173 293.4)
XYZxyz(21.7313, 14.9124, 57.5991)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856CA #A8CA56
analogous
#566ECA #7856CA #B256CA
triadic
#7856CA #CA7856 #56CA78
tetradic
#7856CA #CA566E #A8CA56 #56CAB2
square
#7856CA #CA566E #A8CA56 #56CAB2
split-complementary
#7856CA #CAB256 #6ECA56
monochromatic
#41287E #5936AD #7856CA #9D85D9 #C2B3E7

Accessibility & contrast

On white

5.27
#7856CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7856CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856CA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856CA#FFFFFF#000000##FFFFFF
##7856CA1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116DCE
Deuteranopia (green-blind)
#206AC7
Tritanopia (blue-blind)
#626F88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7856ca;
/* rgb */ color: rgb(120, 86, 202);
/* oklch */ color: oklch(54.7% 0.173 293.4);
Tailwind
colors: {
  custom: {
    50: '#a487db',
    500: '#7856ca',
    950: '#000000',
  },
}
SCSS
$custom: #7856ca;
$custom-light: #a487db;
$custom-dark: #000000;
JSON
{
  "hex": "#7856ca",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 257.586,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54733,
    "c": 0.17261,
    "h": 293.4
  },
  "luminance": 0.14913
}

Semantic roles & 50–950 ramp

primary
#7856CA
secondary
#C8D6A6
accent
#DC4CB2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7856CA

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

Preview Lab → · Contrast checker → · Palette generator →

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