#7A2DB8#7A2DB8

#7A2DB8 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.205 H 304.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB8
RGBrgb(122, 45, 184)
HSLhsl(273, 61%, 45%)
HSVhsv(273, 76%, 72%)
CMYKcmyk(33.7%, 75.5%, 0%, 27.8%)
CIE-LABlab(36.88, 57.12, -59.15)
CIE-LCHlch(36.88, 82.23, 314.00°)
OKLaboklab(48.16% 0.1174 -0.1684)
OKLCHoklch(48.16% 0.205 304.9)
XYZxyz(17.6142, 9.4751, 46.2390)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB8 #6BB82D
analogous
#342DB8 #7A2DB8 #B82DB1
triadic
#7A2DB8 #B87A2D #2DB87A
tetradic
#7A2DB8 #B8342D #6BB82D #2DB1B8
square
#7A2DB8 #B8342D #6BB82D #2DB1B8
split-complementary
#7A2DB8 #B1B82D #2DB834
monochromatic
#391556 #592187 #7A2DB8 #984ED4 #B580E0

Accessibility & contrast

On white

7.25
#7A2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2DB8
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DB8#FFFFFF#000000##FFFFFF
##7A2DB81.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2db8;
/* rgb */ color: rgb(122, 45, 184);
/* oklch */ color: oklch(48.2% 0.205 304.9);
Tailwind
colors: {
  custom: {
    50: '#a66ece',
    500: '#7a2db8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db8;
$custom-light: #a66ece;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db8",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 273.237,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48162,
    "c": 0.2053,
    "h": 304.9
  },
  "luminance": 0.09475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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