#7F2BB9#7F2BB9

#7F2BB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.7% C 0.210 H 306.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB9
RGBrgb(127, 43, 185)
HSLhsl(275, 62%, 45%)
HSVhsv(275, 77%, 73%)
CMYKcmyk(31.4%, 76.8%, 0%, 27.5%)
CIE-LABlab(37.38, 59.02, -58.91)
CIE-LCHlch(37.38, 83.39, 315.05°)
OKLaboklab(48.68% 0.1259 -0.1675)
OKLCHoklch(48.68% 0.21 306.9)
XYZxyz(18.3713, 9.7428, 46.8023)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB9 #65B92B
analogous
#382BB9 #7F2BB9 #B92BAC
triadic
#7F2BB9 #B97F2B #2BB97F
tetradic
#7F2BB9 #B9382B #65B92B #2BACB9
square
#7F2BB9 #B9382B #65B92B #2BACB9
split-complementary
#7F2BB9 #ACB92B #2BB938
monochromatic
#3B1456 #5D1F87 #7F2BB9 #9D4CD5 #B87EE1

Accessibility & contrast

On white

7.12
#7F2BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F2BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB9
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB9#FFFFFF#000000##FFFFFF
##7F2BB91.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#754F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2bb9;
/* rgb */ color: rgb(127, 43, 185);
/* oklch */ color: oklch(48.7% 0.210 306.9);
Tailwind
colors: {
  custom: {
    50: '#aa6ecf',
    500: '#7f2bb9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb9;
$custom-light: #aa6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb9",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 275.493,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48679,
    "c": 0.20954,
    "h": 306.9
  },
  "luminance": 0.09743
}

Semantic roles & 50–950 ramp

primary
#7F2BB9
secondary
#98C976
accent
#E54285
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #7F2BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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