#7E2DAF#7E2DAF

#7E2DAF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.197 H 309.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7E2DAF
RGBrgb(126, 45, 175)
HSLhsl(277, 59%, 43%)
HSVhsv(277, 74%, 69%)
CMYKcmyk(28%, 74.3%, 0%, 31.4%)
CIE-LABlab(36.76, 55.84, -53.99)
CIE-LCHlch(36.76, 77.67, 315.96°)
OKLaboklab(47.98% 0.1247 -0.1531)
OKLCHoklch(47.98% 0.197 309.2)
XYZxyz(17.2789, 9.4079, 41.4548)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DAF #5EAF2D
analogous
#3D2DAF #7E2DAF #AF2D9F
triadic
#7E2DAF #AF7E2D #2DAF7E
tetradic
#7E2DAF #AF3D2D #5EAF2D #2D9FAF
square
#7E2DAF #AF3D2D #5EAF2D #2D9FAF
split-complementary
#7E2DAF #9FAF2D #2DAF3D
monochromatic
#38144E #5B207E #7E2DAF #9D49D0 #B77ADD

Accessibility & contrast

On white

7.29
#7E2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7E2DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DAF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DAF#FFFFFF#000000##FFFFFF
##7E2DAF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0557AC
Tritanopia (blue-blind)
#774C6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2daf;
/* rgb */ color: rgb(126, 45, 175);
/* oklch */ color: oklch(48.0% 0.197 309.2);
Tailwind
colors: {
  custom: {
    50: '#a86ec8',
    500: '#7e2daf',
    950: '#000000',
  },
}
SCSS
$custom: #7e2daf;
$custom-light: #a86ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2daf",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 277.385,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47977,
    "c": 0.19746,
    "h": 309.2
  },
  "luminance": 0.09408
}

Semantic roles & 50–950 ramp

primary
#7E2DAF
secondary
#92C573
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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