#7E2AB3#7E2AB3

#7E2AB3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.205 H 308.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7E2AB3
RGBrgb(126, 42, 179)
HSLhsl(277, 62%, 43%)
HSVhsv(277, 77%, 70%)
CMYKcmyk(29.6%, 76.5%, 0%, 29.8%)
CIE-LABlab(36.64, 57.90, -56.56)
CIE-LCHlch(36.64, 80.94, 315.67°)
OKLaboklab(47.99% 0.1267 -0.1606)
OKLCHoklch(47.99% 0.205 308.3)
XYZxyz(17.5671, 9.3465, 43.5177)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AB3 #5FB32A
analogous
#392AB3 #7E2AB3 #B32AA3
triadic
#7E2AB3 #B37E2A #2AB37E
tetradic
#7E2AB3 #B3392A #5FB32A #2AA3B3
square
#7E2AB3 #B3392A #5FB32A #2AA3B3
split-complementary
#7E2AB3 #A3B32A #2AB339
monochromatic
#381350 #5B1E81 #7E2AB3 #9D46D4 #B778DF

Accessibility & contrast

On white

7.32
#7E2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7E2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AB3
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AB3#FFFFFF#000000##FFFFFF
##7E2AB31.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#764C6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2ab3;
/* rgb */ color: rgb(126, 42, 179);
/* oklch */ color: oklch(48.0% 0.205 308.3);
Tailwind
colors: {
  custom: {
    50: '#a86dcb',
    500: '#7e2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ab3;
$custom-light: #a86dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ab3",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 276.788,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4799,
    "c": 0.20457,
    "h": 308.3
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#7E2AB3
secondary
#93C772
accent
#E54382
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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