#7E3BB2#7E3BB2

#7E3BB2 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.8% C 0.183 H 306.7°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#7E3BB2
RGBrgb(126, 59, 178)
HSLhsl(274, 50%, 46%)
HSVhsv(274, 67%, 70%)
CMYKcmyk(29.2%, 66.9%, 0%, 30.2%)
CIE-LABlab(39.20, 50.25, -51.82)
CIE-LCHlch(39.20, 72.19, 314.12°)
OKLaboklab(49.79% 0.1096 -0.1468)
OKLCHoklch(49.79% 0.183 306.7)
XYZxyz(18.2023, 10.7781, 43.2323)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3BB2 #6FB23B
analogous
#433BB2 #7E3BB2 #B23BAB
triadic
#7E3BB2 #B27E3B #3BB27E
tetradic
#7E3BB2 #B2433B #6FB23B #3BABB2
square
#7E3BB2 #B2433B #6FB23B #3BABB2
split-complementary
#7E3BB2 #ABB23B #3BB243
monochromatic
#3D1D56 #5D2C84 #7E3BB2 #9C60CA #B88EDA

Accessibility & contrast

On white

6.65
#7E3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#7E3BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3BB2
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3BB2#FFFFFF#000000##FFFFFF
##7E3BB21.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#755571
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e3bb2;
/* rgb */ color: rgb(126, 59, 178);
/* oklch */ color: oklch(49.8% 0.183 306.7);
Tailwind
colors: {
  custom: {
    50: '#a776ca',
    500: '#7e3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e3bb2;
$custom-light: #a776ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3bb2",
  "rgb": {
    "r": 126,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 273.782,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49788,
    "c": 0.18319,
    "h": 306.7
  },
  "luminance": 0.10778
}

Semantic roles & 50–950 ramp

primary
#7E3BB2
secondary
#A0C485
accent
#DA4E8B
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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