#7E2BB4#7E2BB4

#7E2BB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.204 H 307.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7E2BB4
RGBrgb(126, 43, 180)
HSLhsl(276, 61%, 44%)
HSVhsv(276, 76%, 71%)
CMYKcmyk(30%, 76.1%, 0%, 29.4%)
CIE-LABlab(36.85, 57.74, -56.81)
CIE-LCHlch(36.85, 81.00, 315.46°)
OKLaboklab(48.16% 0.1256 -0.1614)
OKLCHoklch(48.16% 0.204 307.9)
XYZxyz(17.7045, 9.4589, 44.0642)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BB4 #61B42B
analogous
#392BB4 #7E2BB4 #B42BA5
triadic
#7E2BB4 #B47E2B #2BB47E
tetradic
#7E2BB4 #B4392B #61B42B #2BA5B4
square
#7E2BB4 #B4392B #61B42B #2BA5B4
split-complementary
#7E2BB4 #A5B42B #2BB439
monochromatic
#391351 #5B1F83 #7E2BB4 #9D49D3 #B77ADF

Accessibility & contrast

On white

7.26
#7E2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BB4
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BB4#FFFFFF#000000##FFFFFF
##7E2BB41.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#754D6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2bb4;
/* rgb */ color: rgb(126, 43, 180);
/* oklch */ color: oklch(48.2% 0.204 307.9);
Tailwind
colors: {
  custom: {
    50: '#a86dcb',
    500: '#7e2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bb4;
$custom-light: #a86dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bb4",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 276.35,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48162,
    "c": 0.20448,
    "h": 307.9
  },
  "luminance": 0.09459
}

Semantic roles & 50–950 ramp

primary
#7E2BB4
secondary
#95C773
accent
#E54383
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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