#7B2DB5#7B2DB5

#7B2DB5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.203 H 306.1°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7B2DB5
RGBrgb(123, 45, 181)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(32%, 75.1%, 0%, 29%)
CIE-LABlab(36.79, 56.62, -57.53)
CIE-LCHlch(36.79, 80.71, 314.54°)
OKLaboklab(48.05% 0.1194 -0.1636)
OKLCHoklch(48.05% 0.203 306.1)
XYZxyz(17.4454, 9.4241, 44.6071)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DB5 #67B52D
analogous
#372DB5 #7B2DB5 #B52DAB
triadic
#7B2DB5 #B57B2D #2DB57B
tetradic
#7B2DB5 #B5372D #67B52D #2DABB5
square
#7B2DB5 #B5372D #67B52D #2DABB5
split-complementary
#7B2DB5 #ABB52D #2DB537
monochromatic
#381553 #5A2184 #7B2DB5 #994DD3 #B57EDF

Accessibility & contrast

On white

7.28
#7B2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7B2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DB5
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DB5#FFFFFF#000000##FFFFFF
##7B2DB51.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#714E6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b2db5;
/* rgb */ color: rgb(123, 45, 181);
/* oklch */ color: oklch(48.1% 0.203 306.1);
Tailwind
colors: {
  custom: {
    50: '#a66ecc',
    500: '#7b2db5',
    950: '#000000',
  },
}
SCSS
$custom: #7b2db5;
$custom-light: #a66ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2db5",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 274.412,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48052,
    "c": 0.20255,
    "h": 306.1
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#7B2DB5
secondary
#99C776
accent
#E34488
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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