#7B2DB7#7B2DB7

#7B2DB7 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.205 H 305.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB7
RGBrgb(123, 45, 183)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 75%, 72%)
CMYKcmyk(32.8%, 75.4%, 0%, 28.2%)
CIE-LABlab(36.94, 57.07, -58.46)
CIE-LCHlch(36.94, 81.70, 314.31°)
OKLaboklab(48.21% 0.119 -0.1663)
OKLCHoklch(48.21% 0.205 305.6)
XYZxyz(17.6521, 9.5068, 45.6956)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB7 #69B72D
analogous
#362DB7 #7B2DB7 #B72DAE
triadic
#7B2DB7 #B77B2D #2DB77B
tetradic
#7B2DB7 #B7362D #69B72D #2DAEB7
square
#7B2DB7 #B7362D #69B72D #2DAEB7
split-complementary
#7B2DB7 #AEB72D #2DB736
monochromatic
#391555 #5A2186 #7B2DB7 #994ED3 #B67FDF

Accessibility & contrast

On white

7.24
#7B2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7B2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB7
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB7#FFFFFF#000000##FFFFFF
##7B2DB71.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#704F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2db7;
/* rgb */ color: rgb(123, 45, 183);
/* oklch */ color: oklch(48.2% 0.205 305.6);
Tailwind
colors: {
  custom: {
    50: '#a76ecd',
    500: '#7b2db7',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db7;
$custom-light: #a76ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db7",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 273.913,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48208,
    "c": 0.20454,
    "h": 305.6
  },
  "luminance": 0.09507
}

Semantic roles & 50–950 ramp

primary
#7B2DB7
secondary
#9BC878
accent
#E44489
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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