#7F2DB9#7F2DB9

#7F2DB9 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.207 H 306.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB9
RGBrgb(127, 45, 185)
HSLhsl(275, 61%, 45%)
HSVhsv(275, 76%, 73%)
CMYKcmyk(31.4%, 75.7%, 0%, 27.5%)
CIE-LABlab(37.65, 58.24, -58.47)
CIE-LCHlch(37.65, 82.53, 314.89°)
OKLaboklab(48.87% 0.1241 -0.1662)
OKLCHoklch(48.87% 0.207 306.7)
XYZxyz(18.4458, 9.8918, 46.8271)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB9 #67B92D
analogous
#392DB9 #7F2DB9 #B92DAD
triadic
#7F2DB9 #B97F2D #2DB97F
tetradic
#7F2DB9 #B9392D #67B92D #2DADB9
square
#7F2DB9 #B9392D #67B92D #2DADB9
split-complementary
#7F2DB9 #ADB92D #2DB939
monochromatic
#3B1557 #5D2188 #7F2DB9 #9D4FD4 #B880E0

Accessibility & contrast

On white

7.05
#7F2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7F2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DB9
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB9#FFFFFF#000000##FFFFFF
##7F2DB91.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#755071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2db9;
/* rgb */ color: rgb(127, 45, 185);
/* oklch */ color: oklch(48.9% 0.207 306.7);
Tailwind
colors: {
  custom: {
    50: '#a96fcf',
    500: '#7f2db9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db9;
$custom-light: #a96fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db9",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 275.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4887,
    "c": 0.20746,
    "h": 306.7
  },
  "luminance": 0.09892
}

Semantic roles & 50–950 ramp

primary
#7F2DB9
secondary
#9AC979
accent
#E44486
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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