#7E2FBA#7E2FBA

#7E2FBA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.206 H 305.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7E2FBA
RGBrgb(126, 47, 186)
HSLhsl(274, 60%, 46%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(32.3%, 74.7%, 0%, 27.1%)
CIE-LABlab(37.87, 57.48, -58.71)
CIE-LCHlch(37.87, 82.16, 314.40°)
OKLaboklab(49.02% 0.1207 -0.167)
OKLCHoklch(49.02% 0.206 305.9)
XYZxyz(18.4817, 10.0140, 47.4041)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FBA #6BBA2F
analogous
#382FBA #7E2FBA #BA2FB0
triadic
#7E2FBA #BA7E2F #2FBA7E
tetradic
#7E2FBA #BA382F #6BBA2F #2FB0BA
square
#7E2FBA #BA382F #6BBA2F #2FB0BA
split-complementary
#7E2FBA #B0BA2F #2FBA38
monochromatic
#3C1658 #5D2389 #7E2FBA #9C53D3 #B884E0

Accessibility & contrast

On white

6.99
#7E2FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7E2FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FBA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FBA#FFFFFF#000000##FFFFFF
##7E2FBA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#735173
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2fba;
/* rgb */ color: rgb(126, 47, 186);
/* oklch */ color: oklch(49.0% 0.206 305.9);
Tailwind
colors: {
  custom: {
    50: '#a970d0',
    500: '#7e2fba',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fba;
$custom-light: #a970d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fba",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 274.101,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49019,
    "c": 0.20605,
    "h": 305.9
  },
  "luminance": 0.10014
}

Semantic roles & 50–950 ramp

primary
#7E2FBA
secondary
#9DC97C
accent
#E34589
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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