#7E2BB3#7E2BB3

#7E2BB3 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.204 H 308.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7E2BB3
RGBrgb(126, 43, 179)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 70%)
CMYKcmyk(29.6%, 76%, 0%, 29.8%)
CIE-LABlab(36.78, 57.52, -56.34)
CIE-LCHlch(36.78, 80.51, 315.59°)
OKLaboklab(48.09% 0.1258 -0.16)
OKLCHoklch(48.09% 0.204 308.2)
XYZxyz(17.6030, 9.4183, 43.5297)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BB3 #60B32B
analogous
#3A2BB3 #7E2BB3 #B32BA4
triadic
#7E2BB3 #B37E2B #2BB37E
tetradic
#7E2BB3 #B33A2B #60B32B #2BA4B3
square
#7E2BB3 #B33A2B #60B32B #2BA4B3
split-complementary
#7E2BB3 #A4B32B #2BB33A
monochromatic
#391350 #5B1F82 #7E2BB3 #9D48D3 #B779DF

Accessibility & contrast

On white

7.28
#7E2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7E2BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BB3
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BB3#FFFFFF#000000##FFFFFF
##7E2BB31.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#754C6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e2bb3;
/* rgb */ color: rgb(126, 43, 179);
/* oklch */ color: oklch(48.1% 0.204 308.2);
Tailwind
colors: {
  custom: {
    50: '#a86dcb',
    500: '#7e2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bb3;
$custom-light: #a86dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bb3",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 276.618,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48085,
    "c": 0.20352,
    "h": 308.2
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#7E2BB3
secondary
#94C773
accent
#E44382
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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