#7E2BBA#7E2BBA

#7E2BBA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.210 H 306.2°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7E2BBA
RGBrgb(126, 43, 186)
HSLhsl(275, 62%, 45%)
HSVhsv(275, 77%, 73%)
CMYKcmyk(32.3%, 76.9%, 0%, 27.1%)
CIE-LABlab(37.31, 59.07, -59.61)
CIE-LCHlch(37.31, 83.92, 314.74°)
OKLaboklab(48.63% 0.1243 -0.1696)
OKLCHoklch(48.63% 0.21 306.2)
XYZxyz(18.3290, 9.7087, 47.3532)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BBA #67BA2B
analogous
#372BBA #7E2BBA #BA2BAF
triadic
#7E2BBA #BA7E2B #2BBA7E
tetradic
#7E2BBA #BA372B #67BA2B #2BAFBA
square
#7E2BBA #BA372B #67BA2B #2BAFBA
split-complementary
#7E2BBA #AFBA2B #2BBA37
monochromatic
#3B1457 #5C2088 #7E2BBA #9C4CD6 #B87EE1

Accessibility & contrast

On white

7.14
#7E2BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E2BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BBA
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BBA#FFFFFF#000000##FFFFFF
##7E2BBA1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#734F72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2bba;
/* rgb */ color: rgb(126, 43, 186);
/* oklch */ color: oklch(48.6% 0.210 306.2);
Tailwind
colors: {
  custom: {
    50: '#a96ed0',
    500: '#7e2bba',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bba;
$custom-light: #a96ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bba",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 274.825,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4863,
    "c": 0.21026,
    "h": 306.2
  },
  "luminance": 0.09709
}

Semantic roles & 50–950 ramp

primary
#7E2BBA
secondary
#9ACA77
accent
#E64287
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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