#7B30A2#7B30A2

#7B30A2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.180 H 311.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7B30A2
RGBrgb(123, 48, 162)
HSLhsl(279, 54%, 41%)
HSVhsv(279, 70%, 64%)
CMYKcmyk(24.1%, 70.4%, 0%, 36.5%)
CIE-LABlab(35.86, 51.09, -47.69)
CIE-LCHlch(35.86, 69.89, 316.97°)
OKLaboklab(46.96% 0.1195 -0.1347)
OKLCHoklch(46.96% 0.18 311.6)
XYZxyz(15.7457, 8.9339, 35.0704)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B30A2 #57A230
analogous
#4230A2 #7B30A2 #A23090
triadic
#7B30A2 #A27B30 #30A27B
tetradic
#7B30A2 #A24230 #57A230 #3090A2
square
#7B30A2 #A24230 #57A230 #3090A2
split-complementary
#7B30A2 #90A230 #30A242
monochromatic
#331444 #572273 #7B30A2 #9C47C8 #B576D6

Accessibility & contrast

On white

7.54
#7B30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7B30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B30A2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B30A2#FFFFFF#000000##FFFFFF
##7B30A21.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#22569F
Tritanopia (blue-blind)
#764865
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b30a2;
/* rgb */ color: rgb(123, 48, 162);
/* oklch */ color: oklch(47.0% 0.180 311.6);
Tailwind
colors: {
  custom: {
    50: '#a56fbe',
    500: '#7b30a2',
    950: '#000000',
  },
}
SCSS
$custom: #7b30a2;
$custom-light: #a56fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b30a2",
  "rgb": {
    "r": 123,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 279.474,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46955,
    "c": 0.18005,
    "h": 311.6
  },
  "luminance": 0.08933
}

Semantic roles & 50–950 ramp

primary
#7B30A2
secondary
#8ABE6F
accent
#DE4A7D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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