#7A2DB7#7A2DB7

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

Color values

HEX#7A2DB7
RGBrgb(122, 45, 183)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 75%, 72%)
CMYKcmyk(33.3%, 75.4%, 0%, 28.2%)
CIE-LABlab(36.81, 56.89, -58.69)
CIE-LCHlch(36.81, 81.74, 314.11°)
OKLaboklab(48.08% 0.1176 -0.167)
OKLCHoklch(48.08% 0.204 305.1)
XYZxyz(17.5097, 9.4334, 45.6889)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB7 #6AB72D
analogous
#352DB7 #7A2DB7 #B72DAF
triadic
#7A2DB7 #B77A2D #2DB77A
tetradic
#7A2DB7 #B7352D #6AB72D #2DAFB7
square
#7A2DB7 #B7352D #6AB72D #2DAFB7
split-complementary
#7A2DB7 #AFB72D #2DB735
monochromatic
#391555 #592186 #7A2DB7 #984ED3 #B57FDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2DB7#FFFFFF#000000##FFFFFF
##7A2DB71.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)
#0055BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#6F4F70
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2db7;
/* rgb */ color: rgb(122, 45, 183);
/* oklch */ color: oklch(48.1% 0.204 305.1);
Tailwind
colors: {
  custom: {
    50: '#a66ece',
    500: '#7a2db7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db7;
$custom-light: #a66ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db7",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 273.478,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48083,
    "c": 0.2043,
    "h": 305.1
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#7A2DB7
secondary
#9BC878
accent
#E4448B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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