#782EBF#782EBF

#782EBF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.211 H 302.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#782EBF
RGBrgb(120, 46, 191)
HSLhsl(271, 61%, 46%)
HSVhsv(271, 76%, 75%)
CMYKcmyk(37.2%, 75.9%, 0%, 25.1%)
CIE-LABlab(37.31, 57.99, -62.58)
CIE-LCHlch(37.31, 85.32, 312.82°)
OKLaboklab(48.58% 0.1121 -0.1786)
OKLCHoklch(48.58% 0.211 302.1)
XYZxyz(18.1244, 9.7086, 50.1992)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782EBF #75BF2E
analogous
#302EBF #782EBF #BF2EBE
triadic
#782EBF #BF782E #2EBF78
tetradic
#782EBF #BF302E #75BF2E #2EBEBF
square
#782EBF #BF302E #75BF2E #2EBEBF
split-complementary
#782EBF #BEBF2E #2EBF30
monochromatic
#3A165C #59228E #782EBF #9654D6 #B586E2

Accessibility & contrast

On white

7.14
#782EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#782EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782EBF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782EBF#FFFFFF#000000##FFFFFF
##782EBF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#695475
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #782ebf;
/* rgb */ color: rgb(120, 46, 191);
/* oklch */ color: oklch(48.6% 0.211 302.1);
Tailwind
colors: {
  custom: {
    50: '#a56fd3',
    500: '#782ebf',
    950: '#000000',
  },
}
SCSS
$custom: #782ebf;
$custom-light: #a56fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#782ebf",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 270.621,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48581,
    "c": 0.21085,
    "h": 302.1
  },
  "luminance": 0.09709
}

Semantic roles & 50–950 ramp

primary
#782EBF
secondary
#A4CB7E
accent
#E44492
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782EBF

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

Preview Lab → · Contrast checker → · Palette generator →

#782EBF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva