#782FAF#782FAF

#782FAF is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.194 H 306.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#782FAF
RGBrgb(120, 47, 175)
HSLhsl(274, 58%, 44%)
HSVhsv(274, 73%, 69%)
CMYKcmyk(31.4%, 73.1%, 0%, 31.4%)
CIE-LABlab(36.22, 53.84, -54.91)
CIE-LCHlch(36.22, 76.90, 314.44°)
OKLaboklab(47.42% 0.1145 -0.156)
OKLCHoklch(47.42% 0.194 306.3)
XYZxyz(16.4984, 9.1214, 41.4406)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782FAF #66AF2F
analogous
#382FAF #782FAF #AF2FA6
triadic
#782FAF #AF782F #2FAF78
tetradic
#782FAF #AF382F #66AF2F #2FA6AF
square
#782FAF #AF382F #66AF2F #2FA6AF
split-complementary
#782FAF #A6AF2F #2FAF38
monochromatic
#36154F #57227F #782FAF #974CCF #B37CDC

Accessibility & contrast

On white

7.44
#782FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#782FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782FAF
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782FAF#FFFFFF#000000##FFFFFF
##782FAF1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#6E4D6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #782faf;
/* rgb */ color: rgb(120, 47, 175);
/* oklch */ color: oklch(47.4% 0.194 306.3);
Tailwind
colors: {
  custom: {
    50: '#a46ec8',
    500: '#782faf',
    950: '#000000',
  },
}
SCSS
$custom: #782faf;
$custom-light: #a46ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#782faf",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 274.219,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47418,
    "c": 0.19356,
    "h": 306.3
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#782FAF
secondary
#97C475
accent
#E14789
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #782FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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