#7B2DB6#7B2DB6

#7B2DB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.204 H 305.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB6
RGBrgb(123, 45, 182)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(32.4%, 75.3%, 0%, 28.6%)
CIE-LABlab(36.87, 56.84, -57.99)
CIE-LCHlch(36.87, 81.21, 314.43°)
OKLaboklab(48.13% 0.1192 -0.165)
OKLCHoklch(48.13% 0.204 305.9)
XYZxyz(17.5484, 9.4653, 45.1494)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB6 #68B62D
analogous
#372DB6 #7B2DB6 #B62DAC
triadic
#7B2DB6 #B67B2D #2DB67B
tetradic
#7B2DB6 #B6372D #68B62D #2DACB6
square
#7B2DB6 #B6372D #68B62D #2DACB6
split-complementary
#7B2DB6 #ACB62D #2DB637
monochromatic
#391554 #5A2185 #7B2DB6 #994DD3 #B57EDF

Accessibility & contrast

On white

7.26
#7B2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7B2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB6
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB6#FFFFFF#000000##FFFFFF
##7B2DB61.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#704F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2db6;
/* rgb */ color: rgb(123, 45, 182);
/* oklch */ color: oklch(48.1% 0.204 305.9);
Tailwind
colors: {
  custom: {
    50: '#a76ecd',
    500: '#7b2db6',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db6;
$custom-light: #a76ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db6",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 274.161,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4813,
    "c": 0.20355,
    "h": 305.9
  },
  "luminance": 0.09465
}

Semantic roles & 50–950 ramp

primary
#7B2DB6
secondary
#9AC877
accent
#E34489
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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