#7F2FAF#7F2FAF

#7F2FAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.195 H 309.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7F2FAF
RGBrgb(127, 47, 175)
HSLhsl(278, 58%, 44%)
HSVhsv(278, 73%, 69%)
CMYKcmyk(27.4%, 73.1%, 0%, 31.4%)
CIE-LABlab(37.19, 55.21, -53.29)
CIE-LCHlch(37.19, 76.73, 316.02°)
OKLaboklab(48.31% 0.1241 -0.151)
OKLCHoklch(48.31% 0.195 309.4)
XYZxyz(17.5052, 9.6405, 41.4878)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FAF #5FAF2F
analogous
#3F2FAF #7F2FAF #AF2F9F
triadic
#7F2FAF #AF7F2F #2FAF7F
tetradic
#7F2FAF #AF3F2F #5FAF2F #2F9FAF
square
#7F2FAF #AF3F2F #5FAF2F #2F9FAF
split-complementary
#7F2FAF #9FAF2F #2FAF3F
monochromatic
#39154F #5C227F #7F2FAF #9E4CCF #B87CDC

Accessibility & contrast

On white

7.17
#7F2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7F2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FAF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FAF#FFFFFF#000000##FFFFFF
##7F2FAF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0F59AC
Tritanopia (blue-blind)
#784C6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7f2faf;
/* rgb */ color: rgb(127, 47, 175);
/* oklch */ color: oklch(48.3% 0.195 309.4);
Tailwind
colors: {
  custom: {
    50: '#a96fc8',
    500: '#7f2faf',
    950: '#000000',
  },
}
SCSS
$custom: #7f2faf;
$custom-light: #a96fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2faf",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 277.5,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48312,
    "c": 0.19546,
    "h": 309.4
  },
  "luminance": 0.0964
}

Semantic roles & 50–950 ramp

primary
#7F2FAF
secondary
#93C475
accent
#E14781
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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