#7A2DBA#7A2DBA

#7A2DBA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.207 H 304.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#7A2DBA
RGBrgb(122, 45, 186)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 73%)
CMYKcmyk(34.4%, 75.8%, 0%, 27.1%)
CIE-LABlab(37.04, 57.58, -60.08)
CIE-LCHlch(37.04, 83.21, 313.78°)
OKLaboklab(48.32% 0.117 -0.1711)
OKLCHoklch(48.32% 0.207 304.4)
XYZxyz(17.8253, 9.5596, 47.3510)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DBA #6DBA2D
analogous
#332DBA #7A2DBA #BA2DB3
triadic
#7A2DBA #BA7A2D #2DBA7A
tetradic
#7A2DBA #BA332D #6DBA2D #2DB3BA
square
#7A2DBA #BA332D #6DBA2D #2DB3BA
split-complementary
#7A2DBA #B3BA2D #2DBA33
monochromatic
#391557 #5A2189 #7A2DBA #9850D5 #B581E0

Accessibility & contrast

On white

7.21
#7A2DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7A2DBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DBA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DBA#FFFFFF#000000##FFFFFF
##7A2DBA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#6E5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2dba;
/* rgb */ color: rgb(122, 45, 186);
/* oklch */ color: oklch(48.3% 0.207 304.4);
Tailwind
colors: {
  custom: {
    50: '#a66ed0',
    500: '#7a2dba',
    950: '#000000',
  },
}
SCSS
$custom: #7a2dba;
$custom-light: #a66ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2dba",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 272.766,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48321,
    "c": 0.20728,
    "h": 304.4
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

primary
#7A2DBA
secondary
#9EC979
accent
#E4448D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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