#7F2AB5#7F2AB5

#7F2AB5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.207 H 308.1°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB5
RGBrgb(127, 42, 181)
HSLhsl(277, 62%, 44%)
HSVhsv(277, 77%, 71%)
CMYKcmyk(29.8%, 76.8%, 0%, 29%)
CIE-LABlab(36.94, 58.52, -57.26)
CIE-LCHlch(36.94, 81.87, 315.63°)
OKLaboklab(48.28% 0.1276 -0.1626)
OKLCHoklch(48.28% 0.207 308.1)
XYZxyz(17.9191, 9.5044, 44.5977)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB5 #60B52A
analogous
#3A2AB5 #7F2AB5 #B52AA5
triadic
#7F2AB5 #B57F2A #2AB57F
tetradic
#7F2AB5 #B53A2A #60B52A #2AA5B5
square
#7F2AB5 #B53A2A #60B52A #2AA5B5
split-complementary
#7F2AB5 #A5B52A #2AB53A
monochromatic
#391352 #5C1E83 #7F2AB5 #9E48D4 #B879E0

Accessibility & contrast

On white

7.24
#7F2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB5
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB5#FFFFFF#000000##FFFFFF
##7F2AB51.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0058B2
Tritanopia (blue-blind)
#764C6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2ab5;
/* rgb */ color: rgb(127, 42, 181);
/* oklch */ color: oklch(48.3% 0.207 308.1);
Tailwind
colors: {
  custom: {
    50: '#a96dcc',
    500: '#7f2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab5;
$custom-light: #a96dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab5",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 276.691,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48275,
    "c": 0.20674,
    "h": 308.1
  },
  "luminance": 0.09504
}

Semantic roles & 50–950 ramp

primary
#7F2AB5
secondary
#94C873
accent
#E54282
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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