#7F2DB6#7F2DB6

#7F2DB6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.205 H 307.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7F2DB6
RGBrgb(127, 45, 182)
HSLhsl(276, 60%, 45%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(30.2%, 75.3%, 0%, 28.6%)
CIE-LABlab(37.42, 57.58, -57.07)
CIE-LCHlch(37.42, 81.07, 315.25°)
OKLaboklab(48.64% 0.1247 -0.1621)
OKLCHoklch(48.64% 0.205 307.6)
XYZxyz(18.1325, 9.7664, 45.1768)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DB6 #64B62D
analogous
#3A2DB6 #7F2DB6 #B62DA9
triadic
#7F2DB6 #B67F2D #2DB67F
tetradic
#7F2DB6 #B63A2D #64B62D #2DA9B6
square
#7F2DB6 #B63A2D #64B62D #2DA9B6
split-complementary
#7F2DB6 #A9B62D #2DB63A
monochromatic
#3B1554 #5D2185 #7F2DB6 #9D4DD3 #B87EDF

Accessibility & contrast

On white

7.11
#7F2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2DB6
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DB6#FFFFFF#000000##FFFFFF
##7F2DB61.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#764E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2db6;
/* rgb */ color: rgb(127, 45, 182);
/* oklch */ color: oklch(48.6% 0.205 307.6);
Tailwind
colors: {
  custom: {
    50: '#a96ecd',
    500: '#7f2db6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2db6;
$custom-light: #a96ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2db6",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 275.912,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48638,
    "c": 0.20455,
    "h": 307.6
  },
  "luminance": 0.09766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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