#7B2FBA#7B2FBA

#7B2FBA is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.205 H 304.6°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7B2FBA
RGBrgb(123, 47, 186)
HSLhsl(273, 60%, 46%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(33.9%, 74.7%, 0%, 27.1%)
CIE-LABlab(37.46, 56.94, -59.39)
CIE-LCHlch(37.46, 82.27, 313.79°)
OKLaboklab(48.65% 0.1166 -0.1691)
OKLCHoklch(48.65% 0.205 304.6)
XYZxyz(18.0458, 9.7892, 47.3837)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FBA #6EBA2F
analogous
#352FBA #7B2FBA #BA2FB3
triadic
#7B2FBA #BA7B2F #2FBA7B
tetradic
#7B2FBA #BA352F #6EBA2F #2FB3BA
square
#7B2FBA #BA352F #6EBA2F #2FB3BA
split-complementary
#7B2FBA #B3BA2F #2FBA35
monochromatic
#3A1658 #5B2389 #7B2FBA #9953D3 #B684E0

Accessibility & contrast

On white

7.10
#7B2FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7B2FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FBA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FBA#FFFFFF#000000##FFFFFF
##7B2FBA1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#6F5272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b2fba;
/* rgb */ color: rgb(123, 47, 186);
/* oklch */ color: oklch(48.6% 0.205 304.6);
Tailwind
colors: {
  custom: {
    50: '#a76fd0',
    500: '#7b2fba',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fba;
$custom-light: #a76fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fba",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 272.806,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48647,
    "c": 0.20536,
    "h": 304.6
  },
  "luminance": 0.09789
}

Semantic roles & 50–950 ramp

primary
#7B2FBA
secondary
#9FC97C
accent
#E3458D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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