#7E2FB9#7E2FB9

#7E2FB9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.205 H 306.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB9
RGBrgb(126, 47, 185)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(31.9%, 74.6%, 0%, 27.5%)
CIE-LABlab(37.79, 57.26, -58.24)
CIE-LCHlch(37.79, 81.67, 314.51°)
OKLaboklab(48.94% 0.1209 -0.1656)
OKLCHoklch(48.94% 0.205 306.1)
XYZxyz(18.3757, 9.9716, 46.8462)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB9 #6AB92F
analogous
#392FB9 #7E2FB9 #B92FAF
triadic
#7E2FB9 #B97E2F #2FB97E
tetradic
#7E2FB9 #B9392F #6AB92F #2FAFB9
square
#7E2FB9 #B9392F #6AB92F #2FAFB9
split-complementary
#7E2FB9 #AFB92F #2FB939
monochromatic
#3C1657 #5D2388 #7E2FB9 #9C52D3 #B883DF

Accessibility & contrast

On white

7.01
#7E2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7E2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB9#FFFFFF#000000##FFFFFF
##7E2FB91.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#735172
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2fb9;
/* rgb */ color: rgb(126, 47, 185);
/* oklch */ color: oklch(48.9% 0.205 306.1);
Tailwind
colors: {
  custom: {
    50: '#a96fcf',
    500: '#7e2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb9;
$custom-light: #a96fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb9",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 274.348,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48942,
    "c": 0.20506,
    "h": 306.1
  },
  "luminance": 0.09971
}

Semantic roles & 50–950 ramp

primary
#7E2FB9
secondary
#9CC97B
accent
#E34588
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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