#7E2FB3#7E2FB3

#7E2FB3 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.5% C 0.199 H 307.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB3
RGBrgb(126, 47, 179)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(29.6%, 73.7%, 0%, 29.8%)
CIE-LABlab(37.34, 55.91, -55.42)
CIE-LCHlch(37.34, 78.72, 315.25°)
OKLaboklab(48.48% 0.1221 -0.1573)
OKLCHoklch(48.48% 0.199 307.8)
XYZxyz(17.7557, 9.7236, 43.5805)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB3 #64B32F
analogous
#3C2FB3 #7E2FB3 #B32FA6
triadic
#7E2FB3 #B37E2F #2FB37E
tetradic
#7E2FB3 #B33C2F #64B32F #2FA6B3
square
#7E2FB3 #B33C2F #64B32F #2FA6B3
split-complementary
#7E2FB3 #A6B32F #2FB33C
monochromatic
#3A1652 #5C2283 #7E2FB3 #9C4FD1 #B77FDD

Accessibility & contrast

On white

7.13
#7E2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7E2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB3
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB3#FFFFFF#000000##FFFFFF
##7E2FB31.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#754E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2fb3;
/* rgb */ color: rgb(126, 47, 179);
/* oklch */ color: oklch(48.5% 0.199 307.8);
Tailwind
colors: {
  custom: {
    50: '#a86fcb',
    500: '#7e2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb3;
$custom-light: #a86fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb3",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 275.909,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48483,
    "c": 0.19913,
    "h": 307.8
  },
  "luminance": 0.09723
}

Semantic roles & 50–950 ramp

primary
#7E2FB3
secondary
#97C678
accent
#E24685
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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