#7B2DB3#7B2DB3

#7B2DB3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.201 H 306.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB3
RGBrgb(123, 45, 179)
HSLhsl(275, 60%, 44%)
HSVhsv(275, 75%, 70%)
CMYKcmyk(31.3%, 74.9%, 0%, 29.8%)
CIE-LABlab(36.64, 56.16, -56.59)
CIE-LCHlch(36.64, 79.73, 314.78°)
OKLaboklab(47.9% 0.1198 -0.1608)
OKLCHoklch(47.9% 0.201 306.7)
XYZxyz(17.2417, 9.3426, 43.5341)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB3 #65B32D
analogous
#382DB3 #7B2DB3 #B32DA8
triadic
#7B2DB3 #B37B2D #2DB37B
tetradic
#7B2DB3 #B3382D #65B32D #2DA8B3
square
#7B2DB3 #B3382D #65B32D #2DA8B3
split-complementary
#7B2DB3 #A8B32D #2DB338
monochromatic
#381451 #592182 #7B2DB3 #9A4BD2 #B57CDE

Accessibility & contrast

On white

7.32
#7B2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7B2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB3
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB3#FFFFFF#000000##FFFFFF
##7B2DB31.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#714E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b2db3;
/* rgb */ color: rgb(123, 45, 179);
/* oklch */ color: oklch(47.9% 0.201 306.7);
Tailwind
colors: {
  custom: {
    50: '#a66ecb',
    500: '#7b2db3',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db3;
$custom-light: #a66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db3",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 274.925,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47896,
    "c": 0.20058,
    "h": 306.7
  },
  "luminance": 0.09342
}

Semantic roles & 50–950 ramp

primary
#7B2DB3
secondary
#97C775
accent
#E34587
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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