#7F2BB4#7F2BB4

#7F2BB4 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.205 H 308.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7F2BB4
RGBrgb(127, 43, 180)
HSLhsl(277, 61%, 44%)
HSVhsv(277, 76%, 71%)
CMYKcmyk(29.4%, 76.1%, 0%, 29.4%)
CIE-LABlab(37.00, 57.92, -56.57)
CIE-LCHlch(37.00, 80.96, 315.67°)
OKLaboklab(48.29% 0.127 -0.1606)
OKLCHoklch(48.29% 0.205 308.3)
XYZxyz(17.8528, 9.5354, 44.0712)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2BB4 #60B42B
analogous
#3A2BB4 #7F2BB4 #B42BA4
triadic
#7F2BB4 #B47F2B #2BB47F
tetradic
#7F2BB4 #B43A2B #60B42B #2BA4B4
square
#7F2BB4 #B43A2B #60B42B #2BA4B4
split-complementary
#7F2BB4 #A4B42B #2BB43A
monochromatic
#391351 #5C1F83 #7F2BB4 #9E49D3 #B87ADF

Accessibility & contrast

On white

7.22
#7F2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7F2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2BB4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2BB4#FFFFFF#000000##FFFFFF
##7F2BB41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2bb4;
/* rgb */ color: rgb(127, 43, 180);
/* oklch */ color: oklch(48.3% 0.205 308.3);
Tailwind
colors: {
  custom: {
    50: '#a96dcb',
    500: '#7f2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2bb4;
$custom-light: #a96dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2bb4",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 276.788,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48291,
    "c": 0.20475,
    "h": 308.3
  },
  "luminance": 0.09535
}

Semantic roles & 50–950 ramp

primary
#7F2BB4
secondary
#94C773
accent
#E54382
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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