#7D2EBA#7D2EBA

#7D2EBA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.207 H 305.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7D2EBA
RGBrgb(125, 46, 186)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(32.8%, 75.3%, 0%, 27.1%)
CIE-LABlab(37.59, 57.71, -59.17)
CIE-LCHlch(37.59, 82.65, 314.29°)
OKLaboklab(48.79% 0.1203 -0.1684)
OKLCHoklch(48.79% 0.207 305.5)
XYZxyz(18.2954, 9.8593, 47.3841)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EBA #6BBA2E
analogous
#372EBA #7D2EBA #BA2EB1
triadic
#7D2EBA #BA7D2E #2EBA7D
tetradic
#7D2EBA #BA372E #6BBA2E #2EB1BA
square
#7D2EBA #BA372E #6BBA2E #2EB1BA
split-complementary
#7D2EBA #B1BA2E #2EBA37
monochromatic
#3B1658 #5C2289 #7D2EBA #9B51D4 #B782E0

Accessibility & contrast

On white

7.07
#7D2EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7D2EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EBA
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EBA#FFFFFF#000000##FFFFFF
##7D2EBA1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#725172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2eba;
/* rgb */ color: rgb(125, 46, 186);
/* oklch */ color: oklch(48.8% 0.207 305.5);
Tailwind
colors: {
  custom: {
    50: '#a86fd0',
    500: '#7d2eba',
    950: '#000000',
  },
}
SCSS
$custom: #7d2eba;
$custom-light: #a86fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2eba",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 273.857,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48794,
    "c": 0.20689,
    "h": 305.5
  },
  "luminance": 0.09859
}

Semantic roles & 50–950 ramp

primary
#7D2EBA
secondary
#9DC97B
accent
#E3448A
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7D2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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