#7B2CBD#7B2CBD

#7B2CBD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.211 H 304.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7B2CBD
RGBrgb(123, 44, 189)
HSLhsl(273, 62%, 46%)
HSVhsv(273, 77%, 74%)
CMYKcmyk(34.9%, 76.7%, 0%, 25.9%)
CIE-LABlab(37.27, 58.84, -61.46)
CIE-LCHlch(37.27, 85.08, 313.75°)
OKLaboklab(48.59% 0.1185 -0.1751)
OKLCHoklch(48.59% 0.211 304.1)
XYZxyz(18.2522, 9.6865, 49.0424)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2CBD #6EBD2C
analogous
#332CBD #7B2CBD #BD2CB6
triadic
#7B2CBD #BD7B2C #2CBD7B
tetradic
#7B2CBD #BD332C #6EBD2C #2CB6BD
square
#7B2CBD #BD332C #6EBD2C #2CB6BD
split-complementary
#7B2CBD #B6BD2C #2CBD33
monochromatic
#3A155A #5B208B #7B2CBD #9950D6 #B682E2

Accessibility & contrast

On white

7.15
#7B2CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7B2CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2CBD
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2CBD#FFFFFF#000000##FFFFFF
##7B2CBD1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#6E5173
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b2cbd;
/* rgb */ color: rgb(123, 44, 189);
/* oklch */ color: oklch(48.6% 0.211 304.1);
Tailwind
colors: {
  custom: {
    50: '#a76ed2',
    500: '#7b2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #7b2cbd;
$custom-light: #a76ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2cbd",
  "rgb": {
    "r": 123,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 272.69,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48588,
    "c": 0.21149,
    "h": 304.1
  },
  "luminance": 0.09686
}

Semantic roles & 50–950 ramp

primary
#7B2CBD
secondary
#9FCB7A
accent
#E5428D
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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