#7A2BB6#7A2BB6

#7A2BB6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.205 H 305.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7A2BB6
RGBrgb(122, 43, 182)
HSLhsl(274, 62%, 44%)
HSVhsv(274, 76%, 71%)
CMYKcmyk(33%, 76.4%, 0%, 28.6%)
CIE-LABlab(36.45, 57.46, -58.68)
CIE-LCHlch(36.45, 82.13, 314.40°)
OKLaboklab(47.81% 0.1196 -0.167)
OKLCHoklch(47.81% 0.205 305.6)
XYZxyz(17.3315, 9.2429, 45.1179)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BB6 #67B62B
analogous
#352BB6 #7A2BB6 #B62BAD
triadic
#7A2BB6 #B67A2B #2BB67A
tetradic
#7A2BB6 #B6352B #67B62B #2BADB6
square
#7A2BB6 #B6352B #67B62B #2BADB6
split-complementary
#7A2BB6 #ADB62B #2BB635
monochromatic
#381453 #591F84 #7A2BB6 #994AD4 #B57BE0

Accessibility & contrast

On white

7.37
#7A2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2BB6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BB6#FFFFFF#000000##FFFFFF
##7A2BB61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2bb6;
/* rgb */ color: rgb(122, 43, 182);
/* oklch */ color: oklch(47.8% 0.205 305.6);
Tailwind
colors: {
  custom: {
    50: '#a66dcd',
    500: '#7a2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bb6;
$custom-light: #a66dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bb6",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 274.101,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.20544,
    "h": 305.6
  },
  "luminance": 0.09243
}

Semantic roles & 50–950 ramp

primary
#7A2BB6
secondary
#99C875
accent
#E54389
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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