#7F2DB1#7F2DB1

#7F2DB1 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.200 H 309.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB1
RGBrgb(127, 45, 177)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 75%, 69%)
CMYKcmyk(28.2%, 74.6%, 0%, 30.6%)
CIE-LABlab(37.05, 56.47, -54.71)
CIE-LCHlch(37.05, 78.63, 315.91°)
OKLaboklab(48.26% 0.1257 -0.1552)
OKLCHoklch(48.26% 0.2 309)
XYZxyz(17.6250, 9.5634, 42.5039)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB1 #5FB12D
analogous
#3D2DB1 #7F2DB1 #B12DA1
triadic
#7F2DB1 #B17F2D #2DB17F
tetradic
#7F2DB1 #B13D2D #5FB12D #2DA1B1
square
#7F2DB1 #B13D2D #5FB12D #2DA1B1
split-complementary
#7F2DB1 #A1B12D #2DB13D
monochromatic
#39144F #5C2180 #7F2DB1 #9E4AD1 #B87BDD

Accessibility & contrast

On white

7.21
#7F2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F2DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DB1
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB1#FFFFFF#000000##FFFFFF
##7F2DB11.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0158AE
Tritanopia (blue-blind)
#774C6D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2db1;
/* rgb */ color: rgb(127, 45, 177);
/* oklch */ color: oklch(48.3% 0.200 309.0);
Tailwind
colors: {
  custom: {
    50: '#a96ec9',
    500: '#7f2db1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db1;
$custom-light: #a96ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db1",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 277.273,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48258,
    "c": 0.19968,
    "h": 309
  },
  "luminance": 0.09563
}

Semantic roles & 50–950 ramp

primary
#7F2DB1
secondary
#93C674
accent
#E34581
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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