#7B2EAC#7B2EAC

#7B2EAC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.193 H 308.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7B2EAC
RGBrgb(123, 46, 172)
HSLhsl(277, 58%, 43%)
HSVhsv(277, 73%, 67%)
CMYKcmyk(28.5%, 73.3%, 0%, 32.5%)
CIE-LABlab(36.26, 54.17, -53.03)
CIE-LCHlch(36.26, 75.81, 315.61°)
OKLaboklab(47.47% 0.1202 -0.1504)
OKLCHoklch(47.47% 0.193 308.6)
XYZxyz(16.5902, 9.1438, 39.9127)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EAC #5FAC2E
analogous
#3C2EAC #7B2EAC #AC2E9E
triadic
#7B2EAC #AC7B2E #2EAC7B
tetradic
#7B2EAC #AC3C2E #5FAC2E #2E9EAC
square
#7B2EAC #AC3C2E #5FAC2E #2E9EAC
split-complementary
#7B2EAC #9EAC2E #2EAC3C
monochromatic
#36144B #58217C #7B2EAC #9A49CE #B579DB

Accessibility & contrast

On white

7.42
#7B2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7B2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EAC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EAC#FFFFFF#000000##FFFFFF
##7B2EAC1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0756A9
Tritanopia (blue-blind)
#734B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2eac;
/* rgb */ color: rgb(123, 46, 172);
/* oklch */ color: oklch(47.5% 0.193 308.6);
Tailwind
colors: {
  custom: {
    50: '#a66ec5',
    500: '#7b2eac',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eac;
$custom-light: #a66ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eac",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 276.667,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47466,
    "c": 0.19251,
    "h": 308.6
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#7B2EAC
secondary
#92C372
accent
#E14783
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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