#7F2BB7#7F2BB7

#7F2BB7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.208 H 307.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB7
RGBrgb(127, 43, 183)
HSLhsl(276, 62%, 44%)
HSVhsv(276, 77%, 72%)
CMYKcmyk(30.6%, 76.5%, 0%, 28.2%)
CIE-LABlab(37.22, 58.58, -57.98)
CIE-LCHlch(37.22, 82.42, 315.30°)
OKLaboklab(48.52% 0.1263 -0.1648)
OKLCHoklch(48.52% 0.208 307.5)
XYZxyz(18.1617, 9.6589, 45.6982)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB7 #63B72B
analogous
#392BB7 #7F2BB7 #B72BA9
triadic
#7F2BB7 #B77F2B #2BB77F
tetradic
#7F2BB7 #B7392B #63B72B #2BA9B7
square
#7F2BB7 #B7392B #63B72B #2BA9B7
split-complementary
#7F2BB7 #A9B72B #2BB739
monochromatic
#3A1454 #5D1F85 #7F2BB7 #9D4BD5 #B87CE0

Accessibility & contrast

On white

7.16
#7F2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7F2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB7#FFFFFF#000000##FFFFFF
##7F2BB71.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#764E70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2bb7;
/* rgb */ color: rgb(127, 43, 183);
/* oklch */ color: oklch(48.5% 0.208 307.5);
Tailwind
colors: {
  custom: {
    50: '#a96ecd',
    500: '#7f2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb7;
$custom-light: #a96ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb7",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 276,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.20762,
    "h": 307.5
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#7F2BB7
secondary
#97C975
accent
#E54384
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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