#7F2BAE#7F2BAE

#7F2BAE is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.199 H 310.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7F2BAE
RGBrgb(127, 43, 174)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 68%)
CMYKcmyk(27%, 75.3%, 0%, 31.8%)
CIE-LABlab(36.55, 56.61, -53.73)
CIE-LCHlch(36.55, 78.05, 316.50°)
OKLaboklab(47.84% 0.1281 -0.1523)
OKLCHoklch(47.84% 0.199 310.1)
XYZxyz(17.2547, 9.2961, 40.9216)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BAE #5AAE2B
analogous
#3D2BAE #7F2BAE #AE2B9C
triadic
#7F2BAE #AE7F2B #2BAE7F
tetradic
#7F2BAE #AE3D2B #5AAE2B #2B9CAE
square
#7F2BAE #AE3D2B #5AAE2B #2B9CAE
split-complementary
#7F2BAE #9CAE2B #2BAE3D
monochromatic
#37134C #5B1F7D #7F2BAE #9F45D1 #B876DD

Accessibility & contrast

On white

7.34
#7F2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7F2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BAE
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BAE#FFFFFF#000000##FFFFFF
##7F2BAE1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0757AB
Tritanopia (blue-blind)
#784A6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2bae;
/* rgb */ color: rgb(127, 43, 174);
/* oklch */ color: oklch(47.8% 0.199 310.1);
Tailwind
colors: {
  custom: {
    50: '#a96dc7',
    500: '#7f2bae',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bae;
$custom-light: #a96dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bae",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 278.473,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47836,
    "c": 0.199,
    "h": 310.1
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#7F2BAE
secondary
#8EC570
accent
#E4447D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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