#7B2EC9#7B2EC9

#7B2EC9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.221 H 301.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7B2EC9
RGBrgb(123, 46, 201)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 79%)
CMYKcmyk(38.8%, 77.1%, 0%, 21.2%)
CIE-LABlab(38.52, 60.83, -66.45)
CIE-LCHlch(38.52, 90.09, 312.47°)
OKLaboklab(49.76% 0.1139 -0.1898)
OKLCHoklch(49.76% 0.221 301)
XYZxyz(19.6854, 10.3818, 56.2138)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EC9 #7CC92E
analogous
#2E2FC9 #7B2EC9 #C82EC9
triadic
#7B2EC9 #C97B2E #2EC97B
tetradic
#7B2EC9 #C92E2F #7CC92E #2EC9C8
square
#7B2EC9 #C92E2F #7CC92E #2EC9C8
split-complementary
#7B2EC9 #C9C82E #2FC92E
monochromatic
#3E1765 #5D2397 #7B2EC9 #9A5BD9 #B88DE5

Accessibility & contrast

On white

6.83
#7B2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7B2EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B2EC9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EC9#FFFFFF#000000##FFFFFF
##7B2EC91.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#69577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b2ec9;
/* rgb */ color: rgb(123, 46, 201);
/* oklch */ color: oklch(49.8% 0.221 301.0);
Tailwind
colors: {
  custom: {
    50: '#a86fda',
    500: '#7b2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2ec9;
$custom-light: #a86fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2ec9",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 269.806,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49762,
    "c": 0.22135,
    "h": 301
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#7B2EC9
secondary
#AACF84
accent
#E64294
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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