#7B2DB9#7B2DB9

#7B2DB9 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.207 H 305.0°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB9
RGBrgb(123, 45, 185)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(33.5%, 75.7%, 0%, 27.5%)
CIE-LABlab(37.10, 57.53, -59.39)
CIE-LCHlch(37.10, 82.68, 314.09°)
OKLaboklab(48.37% 0.1186 -0.1691)
OKLCHoklch(48.37% 0.207 305)
XYZxyz(17.8617, 9.5906, 46.7997)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB9 #6BB92D
analogous
#352DB9 #7B2DB9 #B92DB1
triadic
#7B2DB9 #B97B2D #2DB97B
tetradic
#7B2DB9 #B9352D #6BB92D #2DB1B9
square
#7B2DB9 #B9352D #6BB92D #2DB1B9
split-complementary
#7B2DB9 #B1B92D #2DB935
monochromatic
#3A1557 #5A2188 #7B2DB9 #994FD4 #B680E0

Accessibility & contrast

On white

7.20
#7B2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7B2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB9
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB9#FFFFFF#000000##FFFFFF
##7B2DB91.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6F5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2db9;
/* rgb */ color: rgb(123, 45, 185);
/* oklch */ color: oklch(48.4% 0.207 305.0);
Tailwind
colors: {
  custom: {
    50: '#a76ecf',
    500: '#7b2db9',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db9;
$custom-light: #a76ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db9",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 273.429,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48366,
    "c": 0.20651,
    "h": 305
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#7B2DB9
secondary
#9CC979
accent
#E4448B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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