#7F2BB8#7F2BB8

#7F2BB8 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.209 H 307.2°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB8
RGBrgb(127, 43, 184)
HSLhsl(276, 62%, 45%)
HSVhsv(276, 77%, 72%)
CMYKcmyk(31%, 76.6%, 0%, 27.8%)
CIE-LABlab(37.30, 58.80, -58.44)
CIE-LCHlch(37.30, 82.90, 315.17°)
OKLaboklab(48.6% 0.1261 -0.1661)
OKLCHoklch(48.6% 0.209 307.2)
XYZxyz(18.2661, 9.7007, 46.2483)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB8 #64B82B
analogous
#392BB8 #7F2BB8 #B82BAB
triadic
#7F2BB8 #B87F2B #2BB87F
tetradic
#7F2BB8 #B8392B #64B82B #2BABB8
square
#7F2BB8 #B8392B #64B82B #2BABB8
split-complementary
#7F2BB8 #ABB82B #2BB839
monochromatic
#3B1455 #5D1F86 #7F2BB8 #9D4BD5 #B87DE1

Accessibility & contrast

On white

7.14
#7F2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F2BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB8
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB8#FFFFFF#000000##FFFFFF
##7F2BB81.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#754E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2bb8;
/* rgb */ color: rgb(127, 43, 184);
/* oklch */ color: oklch(48.6% 0.209 307.2);
Tailwind
colors: {
  custom: {
    50: '#a96ece',
    500: '#7f2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb8;
$custom-light: #a96ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb8",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 275.745,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48601,
    "c": 0.20858,
    "h": 307.2
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#7F2BB8
secondary
#97C976
accent
#E54384
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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