#7D2BAB#7D2BAB

#7D2BAB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.196 H 310.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7D2BAB
RGBrgb(125, 43, 171)
HSLhsl(278, 60%, 42%)
HSVhsv(278, 75%, 67%)
CMYKcmyk(26.9%, 74.9%, 0%, 32.9%)
CIE-LABlab(36.04, 55.58, -52.78)
CIE-LCHlch(36.04, 76.64, 316.48°)
OKLaboklab(47.35% 0.1259 -0.1496)
OKLCHoklch(47.35% 0.196 310.1)
XYZxyz(16.6706, 9.0284, 39.3846)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2BAB #59AB2B
analogous
#3D2BAB #7D2BAB #AB2B99
triadic
#7D2BAB #AB7D2B #2BAB7D
tetradic
#7D2BAB #AB3D2B #59AB2B #2B99AB
square
#7D2BAB #AB3D2B #59AB2B #2B99AB
split-complementary
#7D2BAB #99AB2B #2BAB3D
monochromatic
#361249 #591F7A #7D2BAB #9D43D0 #B774DC

Accessibility & contrast

On white

7.49
#7D2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7D2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2BAB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2BAB#FFFFFF#000000##FFFFFF
##7D2BAB1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0B56A8
Tritanopia (blue-blind)
#774969
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2bab;
/* rgb */ color: rgb(125, 43, 171);
/* oklch */ color: oklch(47.3% 0.196 310.1);
Tailwind
colors: {
  custom: {
    50: '#a76dc5',
    500: '#7d2bab',
    950: '#000000',
  },
}
SCSS
$custom: #7d2bab;
$custom-light: #a76dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2bab",
  "rgb": {
    "r": 125,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 278.438,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47346,
    "c": 0.19552,
    "h": 310.1
  },
  "luminance": 0.09028
}

Semantic roles & 50–950 ramp

primary
#7D2BAB
secondary
#8DC46E
accent
#E3457E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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