#7F2BBA#7F2BBA

#7F2BBA is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.210 H 306.7°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7F2BBA
RGBrgb(127, 43, 186)
HSLhsl(275, 62%, 45%)
HSVhsv(275, 77%, 73%)
CMYKcmyk(31.7%, 76.9%, 0%, 27.1%)
CIE-LABlab(37.45, 59.24, -59.37)
CIE-LCHlch(37.45, 83.87, 314.94°)
OKLaboklab(48.76% 0.1257 -0.1689)
OKLCHoklch(48.76% 0.211 306.7)
XYZxyz(18.4773, 9.7852, 47.3602)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BBA #66BA2B
analogous
#382BBA #7F2BBA #BA2BAD
triadic
#7F2BBA #BA7F2B #2BBA7F
tetradic
#7F2BBA #BA382B #66BA2B #2BADBA
square
#7F2BBA #BA382B #66BA2B #2BADBA
split-complementary
#7F2BBA #ADBA2B #2BBA38
monochromatic
#3B1457 #5D2088 #7F2BBA #9D4CD6 #B87EE1

Accessibility & contrast

On white

7.10
#7F2BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7F2BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BBA
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BBA#FFFFFF#000000##FFFFFF
##7F2BBA1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#754F72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2bba;
/* rgb */ color: rgb(127, 43, 186);
/* oklch */ color: oklch(48.8% 0.210 306.7);
Tailwind
colors: {
  custom: {
    50: '#aa6ed0',
    500: '#7f2bba',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bba;
$custom-light: #aa6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bba",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 275.245,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48758,
    "c": 0.2105,
    "h": 306.7
  },
  "luminance": 0.09785
}

Semantic roles & 50–950 ramp

primary
#7F2BBA
secondary
#99CA77
accent
#E64286
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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