#782FBB#782FBB

#782FBB is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.206 H 303.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#782FBB
RGBrgb(120, 47, 187)
HSLhsl(271, 60%, 46%)
HSVhsv(271, 75%, 73%)
CMYKcmyk(35.8%, 74.9%, 0%, 26.7%)
CIE-LABlab(37.14, 56.63, -60.52)
CIE-LCHlch(37.14, 82.88, 313.10°)
OKLaboklab(48.36% 0.1121 -0.1725)
OKLCHoklch(48.36% 0.206 303)
XYZxyz(17.7298, 9.6139, 47.9257)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FBB #72BB2F
analogous
#322FBB #782FBB #BB2FB8
triadic
#782FBB #BB782F #2FBB78
tetradic
#782FBB #BB322F #72BB2F #2FB8BB
square
#782FBB #BB322F #72BB2F #2FB8BB
split-complementary
#782FBB #B8BB2F #2FBB32
monochromatic
#391659 #59238A #782FBB #9653D4 #B484E0

Accessibility & contrast

On white

7.18
#782FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#782FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FBB
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FBB#FFFFFF#000000##FFFFFF
##782FBB1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#6A5273
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #782fbb;
/* rgb */ color: rgb(120, 47, 187);
/* oklch */ color: oklch(48.4% 0.206 303.0);
Tailwind
colors: {
  custom: {
    50: '#a56fd0',
    500: '#782fbb',
    950: '#000000',
  },
}
SCSS
$custom: #782fbb;
$custom-light: #a56fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#782fbb",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 271.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48359,
    "c": 0.20575,
    "h": 303
  },
  "luminance": 0.09614
}

Semantic roles & 50–950 ramp

primary
#782FBB
secondary
#A1C97C
accent
#E34591
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #782FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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