#7A2FAF#7A2FAF

#7A2FAF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.194 H 307.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7A2FAF
RGBrgb(122, 47, 175)
HSLhsl(275, 58%, 44%)
HSVhsv(275, 73%, 69%)
CMYKcmyk(30.3%, 73.1%, 0%, 31.4%)
CIE-LABlab(36.49, 54.23, -54.45)
CIE-LCHlch(36.49, 76.85, 314.88°)
OKLaboklab(47.67% 0.1173 -0.1546)
OKLCHoklch(47.67% 0.194 307.2)
XYZxyz(16.7788, 9.2660, 41.4537)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FAF #64AF2F
analogous
#3A2FAF #7A2FAF #AF2FA4
triadic
#7A2FAF #AF7A2F #2FAF7A
tetradic
#7A2FAF #AF3A2F #64AF2F #2FA4AF
square
#7A2FAF #AF3A2F #64AF2F #2FA4AF
split-complementary
#7A2FAF #A4AF2F #2FAF3A
monochromatic
#37154F #58227F #7A2FAF #994CCF #B47CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2FAF#FFFFFF#000000##FFFFFF
##7A2FAF1.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)
#0053B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#714D6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2faf;
/* rgb */ color: rgb(122, 47, 175);
/* oklch */ color: oklch(47.7% 0.194 307.2);
Tailwind
colors: {
  custom: {
    50: '#a56fc8',
    500: '#7a2faf',
    950: '#000000',
  },
}
SCSS
$custom: #7a2faf;
$custom-light: #a56fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2faf",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 275.156,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47671,
    "c": 0.19406,
    "h": 307.2
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

primary
#7A2FAF
secondary
#96C475
accent
#E14787
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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