#7F2DB4#7F2DB4

#7F2DB4 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.203 H 308.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB4
RGBrgb(127, 45, 180)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(29.4%, 75%, 0%, 29.4%)
CIE-LABlab(37.27, 57.13, -56.13)
CIE-LCHlch(37.27, 80.09, 315.51°)
OKLaboklab(48.49% 0.1251 -0.1593)
OKLCHoklch(48.49% 0.203 308.1)
XYZxyz(17.9273, 9.6844, 44.0960)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB4 #62B42D
analogous
#3B2DB4 #7F2DB4 #B42DA6
triadic
#7F2DB4 #B47F2D #2DB47F
tetradic
#7F2DB4 #B43B2D #62B42D #2DA6B4
square
#7F2DB4 #B43B2D #62B42D #2DA6B4
split-complementary
#7F2DB4 #A6B42D #2DB43B
monochromatic
#3A1552 #5C2183 #7F2DB4 #9E4CD2 #B87DDE

Accessibility & contrast

On white

7.15
#7F2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DB4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB4#FFFFFF#000000##FFFFFF
##7F2DB41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#774D6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2db4;
/* rgb */ color: rgb(127, 45, 180);
/* oklch */ color: oklch(48.5% 0.203 308.1);
Tailwind
colors: {
  custom: {
    50: '#a96ecb',
    500: '#7f2db4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db4;
$custom-light: #a96ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db4",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 276.444,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48485,
    "c": 0.20261,
    "h": 308.1
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#7F2DB4
secondary
#96C776
accent
#E34583
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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