#7F2BB3#7F2BB3

#7F2BB3 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.204 H 308.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB3
RGBrgb(127, 43, 179)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 70%)
CMYKcmyk(29.1%, 76%, 0%, 29.8%)
CIE-LABlab(36.92, 57.70, -56.10)
CIE-LCHlch(36.92, 80.48, 315.80°)
OKLaboklab(48.22% 0.1272 -0.1593)
OKLCHoklch(48.22% 0.204 308.6)
XYZxyz(17.7513, 9.4948, 43.5366)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB3 #5FB32B
analogous
#3B2BB3 #7F2BB3 #B32BA3
triadic
#7F2BB3 #B37F2B #2BB37F
tetradic
#7F2BB3 #B33B2B #5FB32B #2BA3B3
square
#7F2BB3 #B33B2B #5FB32B #2BA3B3
split-complementary
#7F2BB3 #A3B32B #2BB33B
monochromatic
#391350 #5C1F82 #7F2BB3 #9E48D3 #B879DF

Accessibility & contrast

On white

7.24
#7F2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7F2BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB3
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB3#FFFFFF#000000##FFFFFF
##7F2BB31.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#774C6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2bb3;
/* rgb */ color: rgb(127, 43, 179);
/* oklch */ color: oklch(48.2% 0.204 308.6);
Tailwind
colors: {
  custom: {
    50: '#a96dcb',
    500: '#7f2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb3;
$custom-light: #a96dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb3",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 277.059,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48215,
    "c": 0.20379,
    "h": 308.6
  },
  "luminance": 0.09494
}

Semantic roles & 50–950 ramp

primary
#7F2BB3
secondary
#93C773
accent
#E44381
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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