#7E2FB4#7E2FB4

#7E2FB4 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.200 H 307.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB4
RGBrgb(126, 47, 180)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(30%, 73.9%, 0%, 29.4%)
CIE-LABlab(37.42, 56.13, -55.90)
CIE-LCHlch(37.42, 79.21, 315.12°)
OKLaboklab(48.56% 0.1219 -0.1587)
OKLCHoklch(48.56% 0.2 307.5)
XYZxyz(17.8572, 9.7642, 44.1151)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB4 #65B42F
analogous
#3C2FB4 #7E2FB4 #B42FA8
triadic
#7E2FB4 #B47E2F #2FB47E
tetradic
#7E2FB4 #B43C2F #65B42F #2FA8B4
square
#7E2FB4 #B43C2F #65B42F #2FA8B4
split-complementary
#7E2FB4 #A8B42F #2FB43C
monochromatic
#3A1653 #5C2283 #7E2FB4 #9C4FD1 #B880DE

Accessibility & contrast

On white

7.11
#7E2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7E2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB4#FFFFFF#000000##FFFFFF
##7E2FB41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#754F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2fb4;
/* rgb */ color: rgb(126, 47, 180);
/* oklch */ color: oklch(48.6% 0.200 307.5);
Tailwind
colors: {
  custom: {
    50: '#a86fcb',
    500: '#7e2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb4;
$custom-light: #a86fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb4",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 275.639,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48559,
    "c": 0.20012,
    "h": 307.5
  },
  "luminance": 0.09764
}

Semantic roles & 50–950 ramp

primary
#7E2FB4
secondary
#98C778
accent
#E24685
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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