#7F2AB2#7F2AB2

#7F2AB2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.204 H 309.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7F2AB2
RGBrgb(127, 42, 178)
HSLhsl(278, 62%, 43%)
HSVhsv(278, 76%, 70%)
CMYKcmyk(28.7%, 76.4%, 0%, 30.2%)
CIE-LABlab(36.71, 57.87, -55.85)
CIE-LCHlch(36.71, 80.42, 316.02°)
OKLaboklab(48.04% 0.1282 -0.1585)
OKLCHoklch(48.04% 0.204 309)
XYZxyz(17.6146, 9.3826, 42.9939)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AB2 #5DB22A
analogous
#3B2AB2 #7F2AB2 #B22AA1
triadic
#7F2AB2 #B27F2A #2AB27F
tetradic
#7F2AB2 #B23B2A #5DB22A #2AA1B2
square
#7F2AB2 #B23B2A #5DB22A #2AA1B2
split-complementary
#7F2AB2 #A1B22A #2AB23B
monochromatic
#38134F #5C1E80 #7F2AB2 #9E46D3 #B877DF

Accessibility & contrast

On white

7.30
#7F2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7F2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AB2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AB2#FFFFFF#000000##FFFFFF
##7F2AB21.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#774B6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2ab2;
/* rgb */ color: rgb(127, 42, 178);
/* oklch */ color: oklch(48.0% 0.204 309.0);
Tailwind
colors: {
  custom: {
    50: '#a96dca',
    500: '#7f2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ab2;
$custom-light: #a96dca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ab2",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 277.5,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48044,
    "c": 0.20388,
    "h": 309
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#7F2AB2
secondary
#91C771
accent
#E54380
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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