#7F2FAB#7F2FAB

#7F2FAB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.192 H 310.6°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7F2FAB
RGBrgb(127, 47, 171)
HSLhsl(279, 57%, 43%)
HSVhsv(279, 73%, 67%)
CMYKcmyk(25.7%, 72.5%, 0%, 32.9%)
CIE-LABlab(36.90, 54.33, -51.37)
CIE-LCHlch(36.90, 74.77, 316.61°)
OKLaboklab(48.02% 0.1247 -0.1454)
OKLCHoklch(48.02% 0.192 310.6)
XYZxyz(17.1182, 9.4857, 39.4493)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FAB #5BAB2F
analogous
#412FAB #7F2FAB #AB2F99
triadic
#7F2FAB #AB7F2F #2FAB7F
tetradic
#7F2FAB #AB412F #5BAB2F #2F99AB
square
#7F2FAB #AB412F #5BAB2F #2F99AB
split-complementary
#7F2FAB #99AB2F #2FAB41
monochromatic
#38154B #5B227B #7F2FAB #9F4ACD #B87ADA

Accessibility & contrast

On white

7.25
#7F2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2FAB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FAB#FFFFFF#000000##FFFFFF
##7F2FAB1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1958A8
Tritanopia (blue-blind)
#794B6A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2fab;
/* rgb */ color: rgb(127, 47, 171);
/* oklch */ color: oklch(48.0% 0.192 310.6);
Tailwind
colors: {
  custom: {
    50: '#a86fc5',
    500: '#7f2fab',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fab;
$custom-light: #a86fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fab",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 278.71,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48019,
    "c": 0.19153,
    "h": 310.6
  },
  "luminance": 0.09485
}

Semantic roles & 50–950 ramp

primary
#7F2FAB
secondary
#8FC373
accent
#E0487E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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