#7E2FBD#7E2FBD

#7E2FBD is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.209 H 305.1°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7E2FBD
RGBrgb(126, 47, 189)
HSLhsl(273, 60%, 46%)
HSVhsv(273, 75%, 74%)
CMYKcmyk(33.3%, 75.1%, 0%, 25.9%)
CIE-LABlab(38.10, 58.16, -60.10)
CIE-LCHlch(38.10, 83.64, 314.06°)
OKLaboklab(49.25% 0.1201 -0.1711)
OKLCHoklch(49.25% 0.209 305.1)
XYZxyz(18.8039, 10.1429, 49.1014)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FBD #6EBD2F
analogous
#372FBD #7E2FBD #BD2FB5
triadic
#7E2FBD #BD7E2F #2FBD7E
tetradic
#7E2FBD #BD372F #6EBD2F #2FB5BD
square
#7E2FBD #BD372F #6EBD2F #2FB5BD
split-complementary
#7E2FBD #B5BD2F #2FBD37
monochromatic
#3D175B #5D238C #7E2FBD #9C55D5 #B886E1

Accessibility & contrast

On white

6.93
#7E2FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E2FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FBD
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FBD#FFFFFF#000000##FFFFFF
##7E2FBD1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#725274
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2fbd;
/* rgb */ color: rgb(126, 47, 189);
/* oklch */ color: oklch(49.3% 0.209 305.1);
Tailwind
colors: {
  custom: {
    50: '#a970d2',
    500: '#7e2fbd',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fbd;
$custom-light: #a970d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fbd",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 273.38,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49254,
    "c": 0.20902,
    "h": 305.1
  },
  "luminance": 0.10143
}

Semantic roles & 50–950 ramp

primary
#7E2FBD
secondary
#A0CA7E
accent
#E3448B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E2FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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