#7B2DBA#7B2DBA

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

Color values

HEX#7B2DBA
RGBrgb(123, 45, 186)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(33.9%, 75.8%, 0%, 27.1%)
CIE-LABlab(37.18, 57.76, -59.85)
CIE-LCHlch(37.18, 83.17, 313.98°)
OKLaboklab(48.45% 0.1184 -0.1704)
OKLCHoklch(48.45% 0.208 304.8)
XYZxyz(17.9677, 9.6330, 47.3576)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DBA #6CBA2D
analogous
#342DBA #7B2DBA #BA2DB3
triadic
#7B2DBA #BA7B2D #2DBA7B
tetradic
#7B2DBA #BA342D #6CBA2D #2DB3BA
square
#7B2DBA #BA342D #6CBA2D #2DB3BA
split-complementary
#7B2DBA #B3BA2D #2DBA34
monochromatic
#3A1557 #5A2189 #7B2DBA #9950D5 #B681E0

Accessibility & contrast

On white

7.18
#7B2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7B2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DBA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DBA#FFFFFF#000000##FFFFFF
##7B2DBA1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#6F5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2dba;
/* rgb */ color: rgb(123, 45, 186);
/* oklch */ color: oklch(48.4% 0.207 304.8);
Tailwind
colors: {
  custom: {
    50: '#a76ed0',
    500: '#7b2dba',
    950: '#000000',
  },
}
SCSS
$custom: #7b2dba;
$custom-light: #a76ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2dba",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 273.191,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48445,
    "c": 0.2075,
    "h": 304.8
  },
  "luminance": 0.09633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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