#781B98#781B98

#781B98 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.193 H 315.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#781B98
RGBrgb(120, 27, 152)
HSLhsl(285, 70%, 35%)
HSVhsv(285, 82%, 60%)
CMYKcmyk(21.1%, 82.2%, 0%, 40.4%)
CIE-LABlab(31.91, 56.32, -48.02)
CIE-LCHlch(31.91, 74.01, 319.55°)
OKLaboklab(43.84% 0.1367 -0.1356)
OKLCHoklch(43.84% 0.193 315.2)
XYZxyz(13.8042, 7.0445, 30.3322)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B98 #3B981B
analogous
#3A1B98 #781B98 #981B79
triadic
#781B98 #98781B #1B9878
tetradic
#781B98 #983A1B #3B981B #1B7998
square
#781B98 #983A1B #3B981B #1B7998
split-complementary
#781B98 #79981B #1B983A
monochromatic
#260930 #4F1264 #781B98 #A124CC #BA4EE0

Accessibility & contrast

On white

8.72
#781B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#781B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B98
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B98#FFFFFF#000000##FFFFFF
##781B981.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#144D95
Tritanopia (blue-blind)
#753A5B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781b98;
/* rgb */ color: rgb(120, 27, 152);
/* oklch */ color: oklch(43.8% 0.193 315.2);
Tailwind
colors: {
  custom: {
    50: '#a364b7',
    500: '#781b98',
    950: '#000000',
  },
}
SCSS
$custom: #781b98;
$custom-light: #a364b7;
$custom-dark: #000000;
JSON
{
  "hex": "#781b98",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 284.64,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43841,
    "c": 0.19258,
    "h": 315.2
  },
  "luminance": 0.07044
}

Semantic roles & 50–950 ramp

primary
#781B98
secondary
#6BC24D
accent
#ED3B69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781B98

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

Preview Lab → · Contrast checker → · Palette generator →

#781B98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva