#7A2FB2#7A2FB2

#7A2FB2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.197 H 306.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB2
RGBrgb(122, 47, 178)
HSLhsl(274, 58%, 44%)
HSVhsv(274, 74%, 70%)
CMYKcmyk(31.5%, 73.6%, 0%, 30.2%)
CIE-LABlab(36.72, 54.91, -55.87)
CIE-LCHlch(36.72, 78.34, 314.50°)
OKLaboklab(47.9% 0.1168 -0.1588)
OKLCHoklch(47.9% 0.197 306.3)
XYZxyz(17.0767, 9.3851, 43.0227)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB2 #67B22F
analogous
#392FB2 #7A2FB2 #B22FA9
triadic
#7A2FB2 #B27A2F #2FB27A
tetradic
#7A2FB2 #B2392F #67B22F #2FA9B2
square
#7A2FB2 #B2392F #67B22F #2FA9B2
split-complementary
#7A2FB2 #A9B22F #2FB239
monochromatic
#381551 #592282 #7A2FB2 #994ED0 #B57EDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2FB2#FFFFFF#000000##FFFFFF
##7A2FB21.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)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#704E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2fb2;
/* rgb */ color: rgb(122, 47, 178);
/* oklch */ color: oklch(47.9% 0.197 306.3);
Tailwind
colors: {
  custom: {
    50: '#a56fca',
    500: '#7a2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb2;
$custom-light: #a56fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb2",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 274.351,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.479,
    "c": 0.19709,
    "h": 306.3
  },
  "luminance": 0.09385
}

Semantic roles & 50–950 ramp

primary
#7A2FB2
secondary
#99C677
accent
#E14689
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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