#7D1EB3#7D1EB3

#7D1EB3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.9% C 0.215 H 308.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7D1EB3
RGBrgb(125, 30, 179)
HSLhsl(278, 71%, 41%)
HSVhsv(278, 83%, 70%)
CMYKcmyk(30.2%, 83.2%, 0%, 29.8%)
CIE-LABlab(35.09, 61.81, -59.09)
CIE-LCHlch(35.09, 85.51, 316.29°)
OKLaboklab(46.87% 0.1347 -0.168)
OKLCHoklch(46.87% 0.215 308.7)
XYZxyz(17.0567, 8.5435, 43.3896)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1EB3 #54B31E
analogous
#321EB3 #7D1EB3 #B31E9E
triadic
#7D1EB3 #B37D1E #1EB37D
tetradic
#7D1EB3 #B3321E #54B31E #1E9EB3
square
#7D1EB3 #B3321E #54B31E #1E9EB3
split-complementary
#7D1EB3 #9EB31E #1EB332
monochromatic
#340C4A #58157F #7D1EB3 #9F32DD #B766E5

Accessibility & contrast

On white

7.75
#7D1EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7D1EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1EB3
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1EB3#FFFFFF#000000##FFFFFF
##7D1EB31.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#74476B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d1eb3;
/* rgb */ color: rgb(125, 30, 179);
/* oklch */ color: oklch(46.9% 0.215 308.7);
Tailwind
colors: {
  custom: {
    50: '#a868cb',
    500: '#7d1eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7d1eb3;
$custom-light: #a868cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1eb3",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 278.255,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46874,
    "c": 0.21534,
    "h": 308.7
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

primary
#7D1EB3
secondary
#88CB62
accent
#EE3A7B
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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