#7B2EB3#7B2EB3

#7B2EB3 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.199 H 306.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7B2EB3
RGBrgb(123, 46, 179)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(31.3%, 74.3%, 0%, 29.8%)
CIE-LABlab(36.78, 55.75, -56.35)
CIE-LCHlch(36.78, 79.27, 314.69°)
OKLaboklab(48% 0.1189 -0.1602)
OKLCHoklch(48% 0.199 306.6)
XYZxyz(17.2803, 9.4198, 43.5469)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2EB3 #66B32E
analogous
#392EB3 #7B2EB3 #B32EA9
triadic
#7B2EB3 #B37B2E #2EB37B
tetradic
#7B2EB3 #B3392E #66B32E #2EA9B3
square
#7B2EB3 #B3392E #66B32E #2EA9B3
split-complementary
#7B2EB3 #A9B32E #2EB339
monochromatic
#381552 #5A2182 #7B2EB3 #9A4DD1 #B57EDE

Accessibility & contrast

On white

7.28
#7B2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2EB3
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2EB3#FFFFFF#000000##FFFFFF
##7B2EB31.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#714E6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2eb3;
/* rgb */ color: rgb(123, 46, 179);
/* oklch */ color: oklch(48.0% 0.199 306.6);
Tailwind
colors: {
  custom: {
    50: '#a66ecb',
    500: '#7b2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2eb3;
$custom-light: #a66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2eb3",
  "rgb": {
    "r": 123,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 274.737,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.19947,
    "h": 306.6
  },
  "luminance": 0.0942
}

Semantic roles & 50–950 ramp

primary
#7B2EB3
secondary
#98C676
accent
#E24688
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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