#7B2FAA#7B2FAA

#7B2FAA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.189 H 309.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7B2FAA
RGBrgb(123, 47, 170)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 72%, 67%)
CMYKcmyk(27.6%, 72.4%, 0%, 33.3%)
CIE-LABlab(36.27, 53.30, -51.83)
CIE-LCHlch(36.27, 74.34, 315.80°)
OKLaboklab(47.42% 0.1195 -0.1469)
OKLCHoklch(47.42% 0.189 309.1)
XYZxyz(16.4391, 9.1466, 38.9219)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FAA #5EAA2F
analogous
#3D2FAA #7B2FAA #AA2F9C
triadic
#7B2FAA #AA7B2F #2FAA7B
tetradic
#7B2FAA #AA3D2F #5EAA2F #2F9CAA
square
#7B2FAA #AA3D2F #5EAA2F #2F9CAA
split-complementary
#7B2FAA #9CAA2F #2FAA3D
monochromatic
#36144A #58227A #7B2FAA #9B49CD #B579DA

Accessibility & contrast

On white

7.42
#7B2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7B2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FAA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FAA#FFFFFF#000000##FFFFFF
##7B2FAA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1156A7
Tritanopia (blue-blind)
#744B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2faa;
/* rgb */ color: rgb(123, 47, 170);
/* oklch */ color: oklch(47.4% 0.189 309.1);
Tailwind
colors: {
  custom: {
    50: '#a66fc4',
    500: '#7b2faa',
    950: '#000000',
  },
}
SCSS
$custom: #7b2faa;
$custom-light: #a66fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2faa",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 277.073,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47424,
    "c": 0.18932,
    "h": 309.1
  },
  "luminance": 0.09146
}

Semantic roles & 50–950 ramp

primary
#7B2FAA
secondary
#91C272
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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