#7F2BAD#7F2BAD

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

Color values

HEX#7F2BAD
RGBrgb(127, 43, 173)
HSLhsl(279, 60%, 42%)
HSVhsv(279, 75%, 68%)
CMYKcmyk(26.6%, 75.1%, 0%, 32.2%)
CIE-LABlab(36.48, 56.40, -53.25)
CIE-LCHlch(36.48, 77.57, 316.64°)
OKLaboklab(47.76% 0.1283 -0.1509)
OKLCHoklch(47.76% 0.198 310.4)
XYZxyz(17.1576, 9.2573, 40.4101)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BAD #59AD2B
analogous
#3E2BAD #7F2BAD #AD2B9A
triadic
#7F2BAD #AD7F2B #2BAD7F
tetradic
#7F2BAD #AD3E2B #59AD2B #2B9AAD
square
#7F2BAD #AD3E2B #59AD2B #2B9AAD
split-complementary
#7F2BAD #9AAD2B #2BAD3E
monochromatic
#37134B #5B1F7C #7F2BAD #9F45D1 #B876DD

Accessibility & contrast

On white

7.36
#7F2BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F2BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BAD
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BAD#FFFFFF#000000##FFFFFF
##7F2BAD1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0B57AA
Tritanopia (blue-blind)
#79496A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2bad;
/* rgb */ color: rgb(127, 43, 173);
/* oklch */ color: oklch(47.8% 0.198 310.4);
Tailwind
colors: {
  custom: {
    50: '#a96dc6',
    500: '#7f2bad',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bad;
$custom-light: #a96dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bad",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 278.769,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47761,
    "c": 0.19805,
    "h": 310.4
  },
  "luminance": 0.09257
}

Semantic roles & 50–950 ramp

primary
#7F2BAD
secondary
#8DC46F
accent
#E3447D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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