#7F2AC0#7F2AC0

#7F2AC0 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.217 H 305.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7F2AC0
RGBrgb(127, 42, 192)
HSLhsl(274, 64%, 46%)
HSVhsv(274, 78%, 75%)
CMYKcmyk(33.9%, 78.1%, 0%, 24.7%)
CIE-LABlab(37.80, 60.95, -62.35)
CIE-LCHlch(37.80, 87.19, 314.35°)
OKLaboklab(49.14% 0.1251 -0.1776)
OKLCHoklch(49.14% 0.217 305.2)
XYZxyz(19.0926, 9.9738, 50.7783)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2AC0 #6BC02A
analogous
#342AC0 #7F2AC0 #C02AB6
triadic
#7F2AC0 #C07F2A #2AC07F
tetradic
#7F2AC0 #C0342A #6BC02A #2AB6C0
square
#7F2AC0 #C0342A #6BC02A #2AB6C0
split-complementary
#7F2AC0 #B6C02A #2AC034
monochromatic
#3D145C #5E1F8E #7F2AC0 #9D4FD8 #B981E3

Accessibility & contrast

On white

7.01
#7F2AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F2AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2AC0
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2AC0#FFFFFF#000000##FFFFFF
##7F2AC01.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#735175
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2ac0;
/* rgb */ color: rgb(127, 42, 192);
/* oklch */ color: oklch(49.1% 0.217 305.2);
Tailwind
colors: {
  custom: {
    50: '#aa6ed4',
    500: '#7f2ac0',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ac0;
$custom-light: #aa6ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ac0",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 274,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49144,
    "c": 0.21722,
    "h": 305.2
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

primary
#7F2AC0
secondary
#9DCC7A
accent
#E74189
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F2AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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