#7B1EC9#7B1EC9

#7B1EC9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.5% C 0.235 H 302.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7B1EC9
RGBrgb(123, 30, 201)
HSLhsl(273, 74%, 45%)
HSVhsv(273, 85%, 79%)
CMYKcmyk(38.8%, 85.1%, 0%, 21.2%)
CIE-LABlab(36.66, 66.25, -69.49)
CIE-LCHlch(36.66, 96.00, 313.63°)
OKLaboklab(48.47% 0.125 -0.1986)
OKLCHoklch(48.47% 0.235 302.2)
XYZxyz(19.1727, 9.3565, 56.0429)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1EC9 #6CC91E
analogous
#261EC9 #7B1EC9 #C91EC1
triadic
#7B1EC9 #C97B1E #1EC97B
tetradic
#7B1EC9 #C9261E #6CC91E #1EC1C9
square
#7B1EC9 #C9261E #6CC91E #1EC1C9
split-complementary
#7B1EC9 #C1C91E #1EC926
monochromatic
#3A0E5E #5A1694 #7B1EC9 #9941E3 #B677EB

Accessibility & contrast

On white

7.31
#7B1EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7B1EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1EC9
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1EC9#FFFFFF#000000##FFFFFF
##7B1EC91.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#0055C6
Tritanopia (blue-blind)
#6A5178
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b1ec9;
/* rgb */ color: rgb(123, 30, 201);
/* oklch */ color: oklch(48.5% 0.235 302.2);
Tailwind
colors: {
  custom: {
    50: '#a969db',
    500: '#7b1ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7b1ec9;
$custom-light: #a969db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1ec9",
  "rgb": {
    "r": 123,
    "g": 30,
    "b": 201
  },
  "hsl": {
    "h": 272.632,
    "s": 74.026,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48473,
    "c": 0.23465,
    "h": 302.2
  },
  "luminance": 0.09357
}

Semantic roles & 50–950 ramp

primary
#7B1EC9
secondary
#9DD271
accent
#F1378C
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7B1EC9

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

Preview Lab → · Contrast checker → · Palette generator →

#7B1EC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva