#7F2ABF#7F2ABF

#7F2ABF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.1% C 0.216 H 305.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7F2ABF
RGBrgb(127, 42, 191)
HSLhsl(274, 64%, 46%)
HSVhsv(274, 78%, 75%)
CMYKcmyk(33.5%, 78%, 0%, 25.1%)
CIE-LABlab(37.72, 60.73, -61.89)
CIE-LCHlch(37.72, 86.71, 314.46°)
OKLaboklab(49.06% 0.1253 -0.1763)
OKLCHoklch(49.06% 0.216 305.4)
XYZxyz(18.9822, 9.9297, 50.1967)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2ABF #6ABF2A
analogous
#342ABF #7F2ABF #BF2AB4
triadic
#7F2ABF #BF7F2A #2ABF7F
tetradic
#7F2ABF #BF342A #6ABF2A #2AB4BF
square
#7F2ABF #BF342A #6ABF2A #2AB4BF
split-complementary
#7F2ABF #B4BF2A #2ABF34
monochromatic
#3C145B #5E1F8D #7F2ABF #9D4ED8 #B980E3

Accessibility & contrast

On white

7.03
#7F2ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F2ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2ABF
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2ABF#FFFFFF#000000##FFFFFF
##7F2ABF1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#735174
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2abf;
/* rgb */ color: rgb(127, 42, 191);
/* oklch */ color: oklch(49.1% 0.216 305.4);
Tailwind
colors: {
  custom: {
    50: '#aa6ed3',
    500: '#7f2abf',
    950: '#000000',
  },
}
SCSS
$custom: #7f2abf;
$custom-light: #aa6ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2abf",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 191
  },
  "hsl": {
    "h": 274.228,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49063,
    "c": 0.21627,
    "h": 305.4
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#7F2ABF
secondary
#9DCC79
accent
#E74188
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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