#7A2FBB#7A2FBB

#7A2FBB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.206 H 303.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7A2FBB
RGBrgb(122, 47, 187)
HSLhsl(272, 60%, 46%)
HSVhsv(272, 75%, 73%)
CMYKcmyk(34.8%, 74.9%, 0%, 26.7%)
CIE-LABlab(37.41, 56.99, -60.07)
CIE-LCHlch(37.41, 82.80, 313.49°)
OKLaboklab(48.6% 0.115 -0.1711)
OKLCHoklch(48.6% 0.206 303.9)
XYZxyz(18.0101, 9.7585, 47.9388)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FBB #70BB2F
analogous
#342FBB #7A2FBB #BB2FB6
triadic
#7A2FBB #BB7A2F #2FBB7A
tetradic
#7A2FBB #BB342F #70BB2F #2FB6BB
square
#7A2FBB #BB342F #70BB2F #2FB6BB
split-complementary
#7A2FBB #B6BB2F #2FBB34
monochromatic
#3A1659 #5A238A #7A2FBB #9853D4 #B584E0

Accessibility & contrast

On white

7.11
#7A2FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7A2FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FBB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FBB#FFFFFF#000000##FFFFFF
##7A2FBB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#6D5273
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2fbb;
/* rgb */ color: rgb(122, 47, 187);
/* oklch */ color: oklch(48.6% 0.206 303.9);
Tailwind
colors: {
  custom: {
    50: '#a66fd0',
    500: '#7a2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fbb;
$custom-light: #a66fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fbb",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 272.143,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48603,
    "c": 0.20615,
    "h": 303.9
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#7A2FBB
secondary
#A0C97C
accent
#E3458E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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