#7B2DB0#7B2DB0

#7B2DB0 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.7% C 0.198 H 307.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB0
RGBrgb(123, 45, 176)
HSLhsl(276, 59%, 43%)
HSVhsv(276, 74%, 69%)
CMYKcmyk(30.1%, 74.4%, 0%, 31%)
CIE-LABlab(36.41, 55.49, -55.17)
CIE-LCHlch(36.41, 78.25, 315.16°)
OKLaboklab(47.67% 0.1204 -0.1567)
OKLCHoklch(47.67% 0.198 307.5)
XYZxyz(16.9416, 9.2225, 41.9535)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB0 #62B02D
analogous
#392DB0 #7B2DB0 #B02DA3
triadic
#7B2DB0 #B07B2D #2DB07B
tetradic
#7B2DB0 #B0392D #62B02D #2DA3B0
square
#7B2DB0 #B0392D #62B02D #2DA3B0
split-complementary
#7B2DB0 #A3B02D #2DB039
monochromatic
#37144F #59217F #7B2DB0 #9A4AD1 #B57ADD

Accessibility & contrast

On white

7.38
#7B2DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7B2DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB0
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB0#FFFFFF#000000##FFFFFF
##7B2DB01.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#724C6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2db0;
/* rgb */ color: rgb(123, 45, 176);
/* oklch */ color: oklch(47.7% 0.198 307.5);
Tailwind
colors: {
  custom: {
    50: '#a66ec8',
    500: '#7b2db0',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db0;
$custom-light: #a66ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db0",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 275.725,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47665,
    "c": 0.19761,
    "h": 307.5
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#7B2DB0
secondary
#95C573
accent
#E24585
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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