#7F2AB8#7F2AB8

#7F2AB8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.5% C 0.210 H 307.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB8
RGBrgb(127, 42, 184)
HSLhsl(276, 63%, 44%)
HSVhsv(276, 77%, 72%)
CMYKcmyk(31%, 77.2%, 0%, 27.8%)
CIE-LABlab(37.17, 59.18, -58.66)
CIE-LCHlch(37.17, 83.32, 315.25°)
OKLaboklab(48.51% 0.127 -0.1668)
OKLCHoklch(48.51% 0.21 307.3)
XYZxyz(18.2302, 9.6289, 46.2363)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB8 #63B82A
analogous
#382AB8 #7F2AB8 #B82AAA
triadic
#7F2AB8 #B87F2A #2AB87F
tetradic
#7F2AB8 #B8382A #63B82A #2AAAB8
square
#7F2AB8 #B8382A #63B82A #2AAAB8
split-complementary
#7F2AB8 #AAB82A #2AB838
monochromatic
#3A1354 #5D1F86 #7F2AB8 #9D4AD6 #B87BE1

Accessibility & contrast

On white

7.18
#7F2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7F2AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB8#FFFFFF#000000##FFFFFF
##7F2AB81.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#754E70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2ab8;
/* rgb */ color: rgb(127, 42, 184);
/* oklch */ color: oklch(48.5% 0.210 307.3);
Tailwind
colors: {
  custom: {
    50: '#a96dce',
    500: '#7f2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab8;
$custom-light: #a96dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab8",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 275.915,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48508,
    "c": 0.2096,
    "h": 307.3
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#7F2AB8
secondary
#97C975
accent
#E64284
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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