#7F2DB5#7F2DB5

#7F2DB5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.204 H 307.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB5
RGBrgb(127, 45, 181)
HSLhsl(276, 60%, 44%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(29.8%, 75.1%, 0%, 29%)
CIE-LABlab(37.34, 57.35, -56.60)
CIE-LCHlch(37.34, 80.58, 315.38°)
OKLaboklab(48.56% 0.1249 -0.1607)
OKLCHoklch(48.56% 0.204 307.9)
XYZxyz(18.0295, 9.7253, 44.6345)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB5 #63B52D
analogous
#3B2DB5 #7F2DB5 #B52DA7
triadic
#7F2DB5 #B57F2D #2DB57F
tetradic
#7F2DB5 #B53B2D #63B52D #2DA7B5
square
#7F2DB5 #B53B2D #63B52D #2DA7B5
split-complementary
#7F2DB5 #A7B52D #2DB53B
monochromatic
#3A1553 #5D2184 #7F2DB5 #9D4DD3 #B87EDF

Accessibility & contrast

On white

7.13
#7F2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F2DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2DB5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB5#FFFFFF#000000##FFFFFF
##7F2DB51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#764E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2db5;
/* rgb */ color: rgb(127, 45, 181);
/* oklch */ color: oklch(48.6% 0.204 307.9);
Tailwind
colors: {
  custom: {
    50: '#a96ecc',
    500: '#7f2db5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db5;
$custom-light: #a96ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db5",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 276.176,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48561,
    "c": 0.20357,
    "h": 307.9
  },
  "luminance": 0.09725
}

Semantic roles & 50–950 ramp

primary
#7F2DB5
secondary
#97C776
accent
#E34484
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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