#7A2DB3#7A2DB3

#7A2DB3 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.200 H 306.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB3
RGBrgb(122, 45, 179)
HSLhsl(274, 60%, 44%)
HSVhsv(274, 75%, 70%)
CMYKcmyk(31.8%, 74.9%, 0%, 29.8%)
CIE-LABlab(36.50, 55.98, -56.82)
CIE-LCHlch(36.50, 79.76, 314.57°)
OKLaboklab(47.77% 0.1185 -0.1616)
OKLCHoklch(47.77% 0.2 306.2)
XYZxyz(17.0993, 9.2692, 43.5274)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB3 #66B32D
analogous
#372DB3 #7A2DB3 #B32DA9
triadic
#7A2DB3 #B37A2D #2DB37A
tetradic
#7A2DB3 #B3372D #66B32D #2DA9B3
square
#7A2DB3 #B3372D #66B32D #2DA9B3
split-complementary
#7A2DB3 #A9B32D #2DB337
monochromatic
#371451 #592182 #7A2DB3 #994BD2 #B57CDE

Accessibility & contrast

On white

7.36
#7A2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7A2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DB3
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DB3#FFFFFF#000000##FFFFFF
##7A2DB31.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#704E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2db3;
/* rgb */ color: rgb(122, 45, 179);
/* oklch */ color: oklch(47.8% 0.200 306.2);
Tailwind
colors: {
  custom: {
    50: '#a66ecb',
    500: '#7a2db3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db3;
$custom-light: #a66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db3",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 274.478,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4777,
    "c": 0.20034,
    "h": 306.2
  },
  "luminance": 0.09269
}

Semantic roles & 50–950 ramp

primary
#7A2DB3
secondary
#98C775
accent
#E34588
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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