#7B2DB2#7B2DB2

#7B2DB2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.200 H 307.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB2
RGBrgb(123, 45, 178)
HSLhsl(275, 60%, 44%)
HSVhsv(275, 75%, 70%)
CMYKcmyk(30.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(36.56, 55.94, -56.12)
CIE-LCHlch(36.56, 79.24, 314.91°)
OKLaboklab(47.82% 0.12 -0.1595)
OKLCHoklch(47.82% 0.2 307)
XYZxyz(17.1409, 9.3023, 43.0034)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB2 #64B22D
analogous
#382DB2 #7B2DB2 #B22DA6
triadic
#7B2DB2 #B27B2D #2DB27B
tetradic
#7B2DB2 #B2382D #64B22D #2DA6B2
square
#7B2DB2 #B2382D #64B22D #2DA6B2
split-complementary
#7B2DB2 #A6B22D #2DB238
monochromatic
#371450 #592181 #7B2DB2 #9A4BD1 #B57CDE

Accessibility & contrast

On white

7.34
#7B2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7B2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB2#FFFFFF#000000##FFFFFF
##7B2DB21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2db2;
/* rgb */ color: rgb(123, 45, 178);
/* oklch */ color: oklch(47.8% 0.200 307.0);
Tailwind
colors: {
  custom: {
    50: '#a66eca',
    500: '#7b2db2',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db2;
$custom-light: #a66eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db2",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 275.188,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47819,
    "c": 0.19959,
    "h": 307
  },
  "luminance": 0.09302
}

Semantic roles & 50–950 ramp

primary
#7B2DB2
secondary
#96C675
accent
#E34586
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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