#7B2EB2#7B2EB2

#7B2EB2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.198 H 306.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB2
RGBrgb(123, 46, 178)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(30.9%, 74.2%, 0%, 30.2%)
CIE-LABlab(36.70, 55.52, -55.88)
CIE-LCHlch(36.70, 78.78, 314.82°)
OKLaboklab(47.92% 0.1191 -0.1588)
OKLCHoklch(47.92% 0.198 306.9)
XYZxyz(17.1795, 9.3795, 43.0162)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB2 #65B22E
analogous
#392EB2 #7B2EB2 #B22EA7
triadic
#7B2EB2 #B27B2E #2EB27B
tetradic
#7B2EB2 #B2392E #65B22E #2EA7B2
square
#7B2EB2 #B2392E #65B22E #2EA7B2
split-complementary
#7B2EB2 #A7B22E #2EB239
monochromatic
#381551 #592181 #7B2EB2 #9A4CD1 #B57DDD

Accessibility & contrast

On white

7.30
#7B2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7B2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2EB2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB2#FFFFFF#000000##FFFFFF
##7B2EB21.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#724E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2eb2;
/* rgb */ color: rgb(123, 46, 178);
/* oklch */ color: oklch(47.9% 0.198 306.9);
Tailwind
colors: {
  custom: {
    50: '#a66eca',
    500: '#7b2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb2;
$custom-light: #a66eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb2",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 275,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47921,
    "c": 0.19847,
    "h": 306.9
  },
  "luminance": 0.09379
}

Semantic roles & 50–950 ramp

primary
#7B2EB2
secondary
#97C676
accent
#E24687
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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