#782FBC#782FBC

#782FBC is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.207 H 302.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#782FBC
RGBrgb(120, 47, 188)
HSLhsl(271, 60%, 46%)
HSVhsv(271, 75%, 74%)
CMYKcmyk(36.2%, 75%, 0%, 26.3%)
CIE-LABlab(37.22, 56.87, -60.97)
CIE-LCHlch(37.22, 83.38, 313.00°)
OKLaboklab(48.44% 0.1119 -0.1738)
OKLCHoklch(48.44% 0.207 302.8)
XYZxyz(17.8372, 9.6569, 48.4915)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FBC #73BC2F
analogous
#312FBC #782FBC #BC2FB9
triadic
#782FBC #BC782F #2FBC78
tetradic
#782FBC #BC312F #73BC2F #2FB9BC
square
#782FBC #BC312F #73BC2F #2FB9BC
split-complementary
#782FBC #B9BC2F #2FBC31
monochromatic
#39175A #59238B #782FBC #9654D4 #B485E0

Accessibility & contrast

On white

7.16
#782FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#782FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FBC
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FBC#FFFFFF#000000##FFFFFF
##782FBC1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#6A5374
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #782fbc;
/* rgb */ color: rgb(120, 47, 188);
/* oklch */ color: oklch(48.4% 0.207 302.8);
Tailwind
colors: {
  custom: {
    50: '#a56fd1',
    500: '#782fbc',
    950: '#000000',
  },
}
SCSS
$custom: #782fbc;
$custom-light: #a56fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#782fbc",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 271.064,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4844,
    "c": 0.20676,
    "h": 302.8
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

primary
#782FBC
secondary
#A2CA7D
accent
#E34591
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #782FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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