#7D2AB1#7D2AB1

#7D2AB1 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.202 H 308.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7D2AB1
RGBrgb(125, 42, 177)
HSLhsl(277, 62%, 43%)
HSVhsv(277, 76%, 69%)
CMYKcmyk(29.4%, 76.3%, 0%, 30.6%)
CIE-LABlab(36.35, 57.28, -55.85)
CIE-LCHlch(36.35, 80.00, 315.72°)
OKLaboklab(47.71% 0.1257 -0.1586)
OKLCHoklch(47.71% 0.202 308.4)
XYZxyz(17.2196, 9.1905, 42.4533)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2AB1 #5EB12A
analogous
#392AB1 #7D2AB1 #B12AA1
triadic
#7D2AB1 #B17D2A #2AB17D
tetradic
#7D2AB1 #B1392A #5EB12A #2AA1B1
square
#7D2AB1 #B1392A #5EB12A #2AA1B1
split-complementary
#7D2AB1 #A1B12A #2AB139
monochromatic
#37134E #5A1E80 #7D2AB1 #9C45D3 #B777DF

Accessibility & contrast

On white

7.40
#7D2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7D2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2AB1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2AB1#FFFFFF#000000##FFFFFF
##7D2AB11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#754B6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2ab1;
/* rgb */ color: rgb(125, 42, 177);
/* oklch */ color: oklch(47.7% 0.202 308.4);
Tailwind
colors: {
  custom: {
    50: '#a86dc9',
    500: '#7d2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ab1;
$custom-light: #a86dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ab1",
  "rgb": {
    "r": 125,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 276.889,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47705,
    "c": 0.20238,
    "h": 308.4
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#7D2AB1
secondary
#92C670
accent
#E54381
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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