#7862BF#7862BF

#7862BF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.1% C 0.140 H 292.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7862BF
RGBrgb(120, 98, 191)
HSLhsl(254, 42%, 57%)
HSVhsv(254, 49%, 75%)
CMYKcmyk(37.2%, 48.7%, 0%, 25.1%)
CIE-LABlab(47.61, 30.54, -45.98)
CIE-LCHlch(47.61, 55.20, 303.59°)
OKLaboklab(56.08% 0.0529 -0.1299)
OKLCHoklch(56.08% 0.14 292.2)
XYZxyz(21.5149, 16.4895, 51.3294)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7862BF #A9BF62
analogous
#627BBF #7862BF #A762BF
triadic
#7862BF #BF7862 #62BF78
tetradic
#7862BF #BF627B #A9BF62 #62BFA7
square
#7862BF #BF627B #A9BF62 #62BFA7
split-complementary
#7862BF #BFA762 #7BBF62
monochromatic
#413076 #5942A2 #7862BF #9D8DD1 #C3B9E2

Accessibility & contrast

On white

4.89
#7862BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7862BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7862BF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7862BF#FFFFFF#000000##FFFFFF
##7862BF1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F72C2
Deuteranopia (green-blind)
#436FBD
Tritanopia (blue-blind)
#667487
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7862bf;
/* rgb */ color: rgb(120, 98, 191);
/* oklch */ color: oklch(56.1% 0.140 292.2);
Tailwind
colors: {
  custom: {
    50: '#a28fd3',
    500: '#7862bf',
    950: '#000000',
  },
}
SCSS
$custom: #7862bf;
$custom-light: #a28fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7862bf",
  "rgb": {
    "r": 120,
    "g": 98,
    "b": 191
  },
  "hsl": {
    "h": 254.194,
    "s": 42.081,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56075,
    "c": 0.14029,
    "h": 292.2
  },
  "luminance": 0.1649
}

Semantic roles & 50–950 ramp

primary
#7862BF
secondary
#C8D1AB
accent
#D256B5
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #7862BF

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

Preview Lab → · Contrast checker → · Palette generator →

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