#7F2ABE#7F2ABE

#7F2ABE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.215 H 305.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7F2ABE
RGBrgb(127, 42, 190)
HSLhsl(274, 64%, 45%)
HSVhsv(274, 78%, 75%)
CMYKcmyk(33.2%, 77.9%, 0%, 25.5%)
CIE-LABlab(37.64, 60.51, -61.43)
CIE-LCHlch(37.64, 86.22, 314.57°)
OKLaboklab(48.98% 0.1256 -0.1749)
OKLCHoklch(48.98% 0.215 305.7)
XYZxyz(18.8725, 9.8858, 49.6191)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2ABE #69BE2A
analogous
#352ABE #7F2ABE #BE2AB3
triadic
#7F2ABE #BE7F2A #2ABE7F
tetradic
#7F2ABE #BE352A #69BE2A #2AB3BE
square
#7F2ABE #BE352A #69BE2A #2AB3BE
split-complementary
#7F2ABE #B3BE2A #2ABE35
monochromatic
#3C145A #5D1F8C #7F2ABE #9D4DD8 #B980E3

Accessibility & contrast

On white

7.05
#7F2ABE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7F2ABE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2ABE
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2ABE#FFFFFF#000000##FFFFFF
##7F2ABE1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#735074
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2abe;
/* rgb */ color: rgb(127, 42, 190);
/* oklch */ color: oklch(49.0% 0.215 305.7);
Tailwind
colors: {
  custom: {
    50: '#aa6dd3',
    500: '#7f2abe',
    950: '#000000',
  },
}
SCSS
$custom: #7f2abe;
$custom-light: #aa6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2abe",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 190
  },
  "hsl": {
    "h": 274.459,
    "s": 63.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48983,
    "c": 0.21532,
    "h": 305.7
  },
  "luminance": 0.09886
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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