#7A2FB8#7A2FB8

#7A2FB8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.203 H 304.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB8
RGBrgb(122, 47, 184)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 74%, 72%)
CMYKcmyk(33.7%, 74.5%, 0%, 27.8%)
CIE-LABlab(37.17, 56.29, -58.68)
CIE-LCHlch(37.17, 81.32, 313.81°)
OKLaboklab(48.37% 0.1156 -0.167)
OKLCHoklch(48.37% 0.203 304.7)
XYZxyz(17.6923, 9.6314, 46.2651)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB8 #6DB82F
analogous
#362FB8 #7A2FB8 #B82FB1
triadic
#7A2FB8 #B87A2F #2FB87A
tetradic
#7A2FB8 #B8362F #6DB82F #2FB1B8
square
#7A2FB8 #B8362F #6DB82F #2FB1B8
split-complementary
#7A2FB8 #B1B82F #2FB836
monochromatic
#391657 #5A2387 #7A2FB8 #9852D3 #B582DF

Accessibility & contrast

On white

7.18
#7A2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2FB8
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB8#FFFFFF#000000##FFFFFF
##7A2FB81.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#6E5171
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2fb8;
/* rgb */ color: rgb(122, 47, 184);
/* oklch */ color: oklch(48.4% 0.203 304.7);
Tailwind
colors: {
  custom: {
    50: '#a66fce',
    500: '#7a2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb8;
$custom-light: #a66fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb8",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 272.847,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48366,
    "c": 0.20313,
    "h": 304.7
  },
  "luminance": 0.09631
}

Semantic roles & 50–950 ramp

primary
#7A2FB8
secondary
#9EC87B
accent
#E2458C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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