#7B2FAB#7B2FAB

#7B2FAB is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.190 H 308.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7B2FAB
RGBrgb(123, 47, 171)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 73%, 67%)
CMYKcmyk(28.1%, 72.5%, 0%, 32.9%)
CIE-LABlab(36.34, 53.52, -52.31)
CIE-LCHlch(36.34, 74.84, 315.66°)
OKLaboklab(47.5% 0.1193 -0.1483)
OKLCHoklch(47.5% 0.19 308.8)
XYZxyz(16.5341, 9.1845, 39.4220)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FAB #5FAB2F
analogous
#3D2FAB #7B2FAB #AB2F9D
triadic
#7B2FAB #AB7B2F #2FAB7B
tetradic
#7B2FAB #AB3D2F #5FAB2F #2F9DAB
square
#7B2FAB #AB3D2F #5FAB2F #2F9DAB
split-complementary
#7B2FAB #9DAB2F #2FAB3D
monochromatic
#36154B #58227B #7B2FAB #9A4ACD #B57ADA

Accessibility & contrast

On white

7.40
#7B2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7B2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FAB
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FAB#FFFFFF#000000##FFFFFF
##7B2FAB1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0E56A8
Tritanopia (blue-blind)
#744B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2fab;
/* rgb */ color: rgb(123, 47, 171);
/* oklch */ color: oklch(47.5% 0.190 308.8);
Tailwind
colors: {
  custom: {
    50: '#a66fc5',
    500: '#7b2fab',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fab;
$custom-light: #a66fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fab",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 276.774,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47498,
    "c": 0.19033,
    "h": 308.8
  },
  "luminance": 0.09184
}

Semantic roles & 50–950 ramp

primary
#7B2FAB
secondary
#92C373
accent
#E04883
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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