#7F2CAB#7F2CAB

#7F2CAB is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.195 H 310.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7F2CAB
RGBrgb(127, 44, 171)
HSLhsl(279, 59%, 42%)
HSVhsv(279, 74%, 67%)
CMYKcmyk(25.7%, 74.3%, 0%, 32.9%)
CIE-LABlab(36.47, 55.57, -52.07)
CIE-LCHlch(36.47, 76.15, 316.86°)
OKLaboklab(47.71% 0.1277 -0.1474)
OKLCHoklch(47.71% 0.195 310.9)
XYZxyz(17.0024, 9.2541, 39.4107)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CAB #58AB2C
analogous
#402CAB #7F2CAB #AB2C97
triadic
#7F2CAB #AB7F2C #2CAB7F
tetradic
#7F2CAB #AB402C #58AB2C #2C97AB
square
#7F2CAB #AB402C #58AB2C #2C97AB
split-complementary
#7F2CAB #97AB2C #2CAB40
monochromatic
#37134A #5B1F7A #7F2CAB #9F45CF #B876DC

Accessibility & contrast

On white

7.37
#7F2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7F2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CAB
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CAB#FFFFFF#000000##FFFFFF
##7F2CAB1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#1457A8
Tritanopia (blue-blind)
#794969
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2cab;
/* rgb */ color: rgb(127, 44, 171);
/* oklch */ color: oklch(47.7% 0.195 310.9);
Tailwind
colors: {
  custom: {
    50: '#a96dc5',
    500: '#7f2cab',
    950: '#000000',
  },
}
SCSS
$custom: #7f2cab;
$custom-light: #a96dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2cab",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 279.213,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.19502,
    "h": 310.9
  },
  "luminance": 0.09254
}

Semantic roles & 50–950 ramp

primary
#7F2CAB
secondary
#8CC36F
accent
#E2467C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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