#7F2CAF#7F2CAF

#7F2CAF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 48.0% C 0.199 H 309.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#7F2CAF
RGBrgb(127, 44, 175)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 69%)
CMYKcmyk(27.4%, 74.9%, 0%, 31.4%)
CIE-LABlab(36.76, 56.43, -53.98)
CIE-LCHlch(36.76, 78.10, 316.27°)
OKLaboklab(48.01% 0.127 -0.153)
OKLCHoklch(48.01% 0.199 309.7)
XYZxyz(17.3894, 9.4089, 41.4492)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CAF #5CAF2C
analogous
#3D2CAF #7F2CAF #AF2C9D
triadic
#7F2CAF #AF7F2C #2CAF7F
tetradic
#7F2CAF #AF3D2C #5CAF2C #2C9DAF
square
#7F2CAF #AF3D2C #5CAF2C #2C9DAF
split-complementary
#7F2CAF #9DAF2C #2CAF3D
monochromatic
#38134D #5C207E #7F2CAF #9E47D1 #B878DD

Accessibility & contrast

On white

7.29
#7F2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2CAF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CAF#FFFFFF#000000##FFFFFF
##7F2CAF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0658AC
Tritanopia (blue-blind)
#784B6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2caf;
/* rgb */ color: rgb(127, 44, 175);
/* oklch */ color: oklch(48.0% 0.199 309.7);
Tailwind
colors: {
  custom: {
    50: '#a96ec8',
    500: '#7f2caf',
    950: '#000000',
  },
}
SCSS
$custom: #7f2caf;
$custom-light: #a96ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2caf",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 278.015,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48008,
    "c": 0.19886,
    "h": 309.7
  },
  "luminance": 0.09409
}

Semantic roles & 50–950 ramp

primary
#7F2CAF
secondary
#90C572
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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