#7A2DB6#7A2DB6

#7A2DB6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.203 H 305.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7A2DB6
RGBrgb(122, 45, 182)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(33%, 75.3%, 0%, 28.6%)
CIE-LABlab(36.73, 56.66, -58.22)
CIE-LCHlch(36.73, 81.24, 314.22°)
OKLaboklab(48% 0.1178 -0.1657)
OKLCHoklch(48% 0.203 305.4)
XYZxyz(17.4060, 9.3919, 45.1427)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DB6 #69B62D
analogous
#362DB6 #7A2DB6 #B62DAD
triadic
#7A2DB6 #B67A2D #2DB67A
tetradic
#7A2DB6 #B6362D #69B62D #2DADB6
square
#7A2DB6 #B6362D #69B62D #2DADB6
split-complementary
#7A2DB6 #ADB62D #2DB636
monochromatic
#381554 #592185 #7A2DB6 #984DD3 #B57EDF

Accessibility & contrast

On white

7.30
#7A2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7A2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DB6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DB6#FFFFFF#000000##FFFFFF
##7A2DB61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#6F4F70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2db6;
/* rgb */ color: rgb(122, 45, 182);
/* oklch */ color: oklch(48.0% 0.203 305.4);
Tailwind
colors: {
  custom: {
    50: '#a66ecd',
    500: '#7a2db6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2db6;
$custom-light: #a66ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2db6",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 273.723,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48004,
    "c": 0.20331,
    "h": 305.4
  },
  "luminance": 0.09392
}

Semantic roles & 50–950 ramp

primary
#7A2DB6
secondary
#9AC877
accent
#E3448A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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