#7A2CB9#7A2CB9

#7A2CB9 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.207 H 304.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7A2CB9
RGBrgb(122, 44, 185)
HSLhsl(273, 62%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(34.1%, 76.2%, 0%, 27.5%)
CIE-LABlab(36.82, 57.75, -59.84)
CIE-LCHlch(36.82, 83.17, 313.98°)
OKLaboklab(48.14% 0.1181 -0.1704)
OKLCHoklch(48.14% 0.207 304.7)
XYZxyz(17.6817, 9.4418, 46.7805)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CB9 #6BB92C
analogous
#332CB9 #7A2CB9 #B92CB2
triadic
#7A2CB9 #B97A2C #2CB97A
tetradic
#7A2CB9 #B9332C #6BB92C #2CB2B9
square
#7A2CB9 #B9332C #6BB92C #2CB2B9
split-complementary
#7A2CB9 #B2B92C #2CB933
monochromatic
#391456 #592088 #7A2CB9 #984DD5 #B57FE1

Accessibility & contrast

On white

7.27
#7A2CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A2CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2CB9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CB9#FFFFFF#000000##FFFFFF
##7A2CB91.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6E5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2cb9;
/* rgb */ color: rgb(122, 44, 185);
/* oklch */ color: oklch(48.1% 0.207 304.7);
Tailwind
colors: {
  custom: {
    50: '#a66ecf',
    500: '#7a2cb9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2cb9;
$custom-light: #a66ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2cb9",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 273.191,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48143,
    "c": 0.20734,
    "h": 304.7
  },
  "luminance": 0.09442
}

Semantic roles & 50–950 ramp

primary
#7A2CB9
secondary
#9CC978
accent
#E5438B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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