#7B2DB8#7B2DB8

#7B2DB8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.206 H 305.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB8
RGBrgb(123, 45, 184)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 72%)
CMYKcmyk(33.2%, 75.5%, 0%, 27.8%)
CIE-LABlab(37.02, 57.30, -58.92)
CIE-LCHlch(37.02, 82.19, 314.20°)
OKLaboklab(48.29% 0.1188 -0.1677)
OKLCHoklch(48.29% 0.206 305.3)
XYZxyz(17.7566, 9.5485, 46.2457)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB8 #6AB82D
analogous
#352DB8 #7B2DB8 #B82DB0
triadic
#7B2DB8 #B87B2D #2DB87B
tetradic
#7B2DB8 #B8352D #6AB82D #2DB0B8
square
#7B2DB8 #B8352D #6AB82D #2DB0B8
split-complementary
#7B2DB8 #B0B82D #2DB835
monochromatic
#391556 #5A2187 #7B2DB8 #994ED4 #B680E0

Accessibility & contrast

On white

7.22
#7B2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7B2DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB8
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB8#FFFFFF#000000##FFFFFF
##7B2DB81.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#705071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2db8;
/* rgb */ color: rgb(123, 45, 184);
/* oklch */ color: oklch(48.3% 0.206 305.3);
Tailwind
colors: {
  custom: {
    50: '#a76ece',
    500: '#7b2db8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db8;
$custom-light: #a76ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db8",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 273.669,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.20552,
    "h": 305.3
  },
  "luminance": 0.09548
}

Semantic roles & 50–950 ramp

primary
#7B2DB8
secondary
#9BC978
accent
#E4448A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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