#7F2BAA#7F2BAA

#7F2BAA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.5% C 0.195 H 311.3°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7F2BAA
RGBrgb(127, 43, 170)
HSLhsl(280, 60%, 42%)
HSVhsv(280, 75%, 67%)
CMYKcmyk(25.3%, 74.7%, 0%, 33.3%)
CIE-LABlab(36.26, 55.75, -51.81)
CIE-LCHlch(36.26, 76.11, 317.10°)
OKLaboklab(47.54% 0.1288 -0.1467)
OKLCHoklch(47.54% 0.195 311.3)
XYZxyz(16.8706, 9.1425, 38.8984)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BAA #56AA2B
analogous
#402BAA #7F2BAA #AA2B96
triadic
#7F2BAA #AA7F2B #2BAA7F
tetradic
#7F2BAA #AA402B #56AA2B #2B96AA
square
#7F2BAA #AA402B #56AA2B #2B96AA
split-complementary
#7F2BAA #96AA2B #2BAA40
monochromatic
#361248 #5B1F79 #7F2BAA #A043CF #B974DC

Accessibility & contrast

On white

7.42
#7F2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7F2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BAA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BAA#FFFFFF#000000##FFFFFF
##7F2BAA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#1457A7
Tritanopia (blue-blind)
#794869
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2baa;
/* rgb */ color: rgb(127, 43, 170);
/* oklch */ color: oklch(47.5% 0.195 311.3);
Tailwind
colors: {
  custom: {
    50: '#a86dc4',
    500: '#7f2baa',
    950: '#000000',
  },
}
SCSS
$custom: #7f2baa;
$custom-light: #a86dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2baa",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 279.685,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47538,
    "c": 0.19518,
    "h": 311.3
  },
  "luminance": 0.09142
}

Semantic roles & 50–950 ramp

primary
#7F2BAA
secondary
#8BC36E
accent
#E3457A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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