#7A2BB8#7A2BB8

#7A2BB8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.207 H 305.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7A2BB8
RGBrgb(122, 43, 184)
HSLhsl(274, 62%, 45%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(33.7%, 76.6%, 0%, 27.8%)
CIE-LABlab(36.60, 57.92, -59.61)
CIE-LCHlch(36.60, 83.11, 314.18°)
OKLaboklab(47.97% 0.1192 -0.1697)
OKLCHoklch(47.97% 0.207 305.1)
XYZxyz(17.5397, 9.3261, 46.2142)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2BB8 #69B82B
analogous
#332BB8 #7A2BB8 #B82BB0
triadic
#7A2BB8 #B87A2B #2BB87A
tetradic
#7A2BB8 #B8332B #69B82B #2BB0B8
square
#7A2BB8 #B8332B #69B82B #2BB0B8
split-complementary
#7A2BB8 #B0B82B #2BB833
monochromatic
#381455 #591F86 #7A2BB8 #984BD5 #B57DE1

Accessibility & contrast

On white

7.33
#7A2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7A2BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2BB8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2BB8#FFFFFF#000000##FFFFFF
##7A2BB81.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#6E4F70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2bb8;
/* rgb */ color: rgb(122, 43, 184);
/* oklch */ color: oklch(48.0% 0.207 305.1);
Tailwind
colors: {
  custom: {
    50: '#a66dce',
    500: '#7a2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2bb8;
$custom-light: #a66dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2bb8",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 273.617,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47966,
    "c": 0.20739,
    "h": 305.1
  },
  "luminance": 0.09326
}

Semantic roles & 50–950 ramp

primary
#7A2BB8
secondary
#9AC976
accent
#E5438A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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