#7F2BB6#7F2BB6

#7F2BB6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.207 H 307.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB6
RGBrgb(127, 43, 182)
HSLhsl(276, 62%, 44%)
HSVhsv(276, 76%, 71%)
CMYKcmyk(30.2%, 76.4%, 0%, 28.6%)
CIE-LABlab(37.15, 58.36, -57.51)
CIE-LCHlch(37.15, 81.93, 315.42°)
OKLaboklab(48.45% 0.1265 -0.1634)
OKLCHoklch(48.45% 0.207 307.8)
XYZxyz(18.0580, 9.6174, 45.1520)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB6 #62B62B
analogous
#3A2BB6 #7F2BB6 #B62BA8
triadic
#7F2BB6 #B67F2B #2BB67F
tetradic
#7F2BB6 #B63A2B #62B62B #2BA8B6
square
#7F2BB6 #B63A2B #62B62B #2BA8B6
split-complementary
#7F2BB6 #A8B62B #2BB63A
monochromatic
#3A1453 #5C1F84 #7F2BB6 #9E4AD4 #B87BE0

Accessibility & contrast

On white

7.18
#7F2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7F2BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB6#FFFFFF#000000##FFFFFF
##7F2BB61.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#764D6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2bb6;
/* rgb */ color: rgb(127, 43, 182);
/* oklch */ color: oklch(48.4% 0.207 307.8);
Tailwind
colors: {
  custom: {
    50: '#a96ecd',
    500: '#7f2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb6;
$custom-light: #a96ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb6",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 276.259,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48446,
    "c": 0.20666,
    "h": 307.8
  },
  "luminance": 0.09617
}

Semantic roles & 50–950 ramp

primary
#7F2BB6
secondary
#96C875
accent
#E54383
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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