#7F2AAF#7F2AAF

#7F2AAF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.201 H 309.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7F2AAF
RGBrgb(127, 42, 175)
HSLhsl(278, 61%, 43%)
HSVhsv(278, 76%, 69%)
CMYKcmyk(27.4%, 76%, 0%, 31.4%)
CIE-LABlab(36.49, 57.22, -54.43)
CIE-LCHlch(36.49, 78.97, 316.43°)
OKLaboklab(47.82% 0.1288 -0.1543)
OKLCHoklch(47.82% 0.201 309.9)
XYZxyz(17.3167, 9.2635, 41.4249)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AAF #5AAF2A
analogous
#3D2AAF #7F2AAF #AF2A9C
triadic
#7F2AAF #AF7F2A #2AAF7F
tetradic
#7F2AAF #AF3D2A #5AAF2A #2A9CAF
square
#7F2AAF #AF3D2A #5AAF2A #2A9CAF
split-complementary
#7F2AAF #9CAF2A #2AAF3D
monochromatic
#37124C #5B1E7E #7F2AAF #9F44D2 #B875DE

Accessibility & contrast

On white

7.36
#7F2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2AAF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AAF#FFFFFF#000000##FFFFFF
##7F2AAF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0157AC
Tritanopia (blue-blind)
#784A6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2aaf;
/* rgb */ color: rgb(127, 42, 175);
/* oklch */ color: oklch(47.8% 0.201 309.9);
Tailwind
colors: {
  custom: {
    50: '#a96dc8',
    500: '#7f2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #7f2aaf;
$custom-light: #a96dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2aaf",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 278.346,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47816,
    "c": 0.20103,
    "h": 309.9
  },
  "luminance": 0.09263
}

Semantic roles & 50–950 ramp

primary
#7F2AAF
secondary
#8EC66F
accent
#E4437E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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