#7862BB#7862BB

#7862BB is a mid, vivid violet. Relative luminance 0.163; OKLCH L 55.8% C 0.135 H 292.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7862BB
RGBrgb(120, 98, 187)
HSLhsl(255, 40%, 56%)
HSVhsv(255, 48%, 73%)
CMYKcmyk(35.8%, 47.6%, 0%, 26.7%)
CIE-LABlab(47.39, 29.44, -44.02)
CIE-LCHlch(47.39, 52.96, 303.77°)
OKLaboklab(55.83% 0.0525 -0.1242)
OKLCHoklch(55.83% 0.135 292.9)
XYZxyz(21.0807, 16.3158, 49.0427)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862BB #A5BB62
analogous
#6278BB #7862BB #A462BB
triadic
#7862BB #BB7862 #62BB78
tetradic
#7862BB #BB6278 #A5BB62 #62BBA4
square
#7862BB #BB6278 #A5BB62 #62BBA4
split-complementary
#7862BB #BBA462 #78BB62
monochromatic
#413171 #5A449C #7862BB #9D8DCD #C1B7E0

Accessibility & contrast

On white

4.93
#7862BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7862BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7862BB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862BB#FFFFFF#000000##FFFFFF
##7862BB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4372BE
Deuteranopia (green-blind)
#466FB9
Tritanopia (blue-blind)
#687385
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7862bb;
/* rgb */ color: rgb(120, 98, 187);
/* oklch */ color: oklch(55.8% 0.135 292.9);
Tailwind
colors: {
  custom: {
    50: '#a28fd0',
    500: '#7862bb',
    950: '#000000',
  },
}
SCSS
$custom: #7862bb;
$custom-light: #a28fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7862bb",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 187
  },
  "hsl": {
    "h": 254.831,
    "s": 39.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55834,
    "c": 0.13481,
    "h": 292.9
  },
  "luminance": 0.16316
}

Semantic roles & 50–950 ramp

primary
#7862BB
secondary
#C6CFAA
accent
#CF58B2
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #7862BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7862BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva