#7F2AB1#7F2AB1

#7F2AB1 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.203 H 309.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB1
RGBrgb(127, 42, 177)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 76%, 69%)
CMYKcmyk(28.2%, 76.3%, 0%, 30.6%)
CIE-LABlab(36.64, 57.65, -55.37)
CIE-LCHlch(36.64, 79.94, 316.15°)
OKLaboklab(47.97% 0.1284 -0.1571)
OKLCHoklch(47.97% 0.203 309.3)
XYZxyz(17.5146, 9.3426, 42.4671)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB1 #5CB12A
analogous
#3C2AB1 #7F2AB1 #B12A9F
triadic
#7F2AB1 #B17F2A #2AB17F
tetradic
#7F2AB1 #B13C2A #5CB12A #2A9FB1
square
#7F2AB1 #B13C2A #5CB12A #2A9FB1
split-complementary
#7F2AB1 #9FB12A #2AB13C
monochromatic
#38134E #5C1E80 #7F2AB1 #9E45D3 #B877DF

Accessibility & contrast

On white

7.32
#7F2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7F2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB1
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB1#FFFFFF#000000##FFFFFF
##7F2AB11.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#774B6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2ab1;
/* rgb */ color: rgb(127, 42, 177);
/* oklch */ color: oklch(48.0% 0.203 309.3);
Tailwind
colors: {
  custom: {
    50: '#a96dc9',
    500: '#7f2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab1;
$custom-light: #a96dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab1",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 277.778,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47967,
    "c": 0.20294,
    "h": 309.3
  },
  "luminance": 0.09342
}

Semantic roles & 50–950 ramp

primary
#7F2AB1
secondary
#90C670
accent
#E5437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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