#7E2BA8#7E2BA8

#7E2BA8 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.193 H 311.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E2BA8
RGBrgb(126, 43, 168)
HSLhsl(280, 59%, 41%)
HSVhsv(280, 74%, 66%)
CMYKcmyk(25%, 74.4%, 0%, 34.1%)
CIE-LABlab(35.97, 55.12, -51.09)
CIE-LCHlch(35.97, 75.16, 317.17°)
OKLaboklab(47.26% 0.1278 -0.1446)
OKLCHoklch(47.26% 0.193 311.5)
XYZxyz(16.5346, 8.9910, 37.9026)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BA8 #55A82B
analogous
#402BA8 #7E2BA8 #A82B94
triadic
#7E2BA8 #A87E2B #2BA87E
tetradic
#7E2BA8 #A8402B #55A82B #2B94A8
square
#7E2BA8 #A8402B #55A82B #2B94A8
split-complementary
#7E2BA8 #94A82B #2BA840
monochromatic
#351247 #591F77 #7E2BA8 #9F42CF #B872DB

Accessibility & contrast

On white

7.50
#7E2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E2BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BA8
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BA8#FFFFFF#000000##FFFFFF
##7E2BA81.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1656A5
Tritanopia (blue-blind)
#794867
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ba8;
/* rgb */ color: rgb(126, 43, 168);
/* oklch */ color: oklch(47.3% 0.193 311.5);
Tailwind
colors: {
  custom: {
    50: '#a86dc3',
    500: '#7e2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ba8;
$custom-light: #a86dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ba8",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 279.84,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47257,
    "c": 0.19295,
    "h": 311.5
  },
  "luminance": 0.08991
}

Semantic roles & 50–950 ramp

primary
#7E2BA8
secondary
#89C26C
accent
#E2457A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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