#7F2BB1#7F2BB1

#7F2BB1 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.202 H 309.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB1
RGBrgb(127, 43, 177)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 76%, 69%)
CMYKcmyk(28.2%, 75.7%, 0%, 30.6%)
CIE-LABlab(36.77, 57.26, -55.16)
CIE-LCHlch(36.77, 79.51, 316.07°)
OKLaboklab(48.06% 0.1275 -0.1565)
OKLCHoklch(48.06% 0.202 309.2)
XYZxyz(17.5505, 9.4144, 42.4791)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB1 #5DB12B
analogous
#3C2BB1 #7F2BB1 #B12BA0
triadic
#7F2BB1 #B17F2B #2BB17F
tetradic
#7F2BB1 #B13C2B #5DB12B #2BA0B1
square
#7F2BB1 #B13C2B #5DB12B #2BA0B1
split-complementary
#7F2BB1 #A0B12B #2BB13C
monochromatic
#38134F #5C1F80 #7F2BB1 #9E47D2 #B878DE

Accessibility & contrast

On white

7.28
#7F2BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F2BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB1#FFFFFF#000000##FFFFFF
##7F2BB11.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0058AE
Tritanopia (blue-blind)
#774B6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2bb1;
/* rgb */ color: rgb(127, 43, 177);
/* oklch */ color: oklch(48.1% 0.202 309.2);
Tailwind
colors: {
  custom: {
    50: '#a96dc9',
    500: '#7f2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb1;
$custom-light: #a96dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb1",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 277.612,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48062,
    "c": 0.20187,
    "h": 309.2
  },
  "luminance": 0.09414
}

Semantic roles & 50–950 ramp

primary
#7F2BB1
secondary
#91C672
accent
#E44480
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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