#7A2FBE#7A2FBE

#7A2FBE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.209 H 303.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7A2FBE
RGBrgb(122, 47, 190)
HSLhsl(271, 60%, 46%)
HSVhsv(271, 75%, 75%)
CMYKcmyk(35.8%, 75.3%, 0%, 25.5%)
CIE-LABlab(37.64, 57.69, -61.45)
CIE-LCHlch(37.64, 84.29, 313.19°)
OKLaboklab(48.84% 0.1143 -0.1752)
OKLCHoklch(48.84% 0.209 303.1)
XYZxyz(18.3346, 9.8883, 49.6479)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FBE #73BE2F
analogous
#332FBE #7A2FBE #BE2FBB
triadic
#7A2FBE #BE7A2F #2FBE7A
tetradic
#7A2FBE #BE332F #73BE2F #2FBBBE
square
#7A2FBE #BE332F #73BE2F #2FBBBE
split-complementary
#7A2FBE #BBBE2F #2FBE33
monochromatic
#3B175C #5A238D #7A2FBE #9855D5 #B686E1

Accessibility & contrast

On white

7.05
#7A2FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7A2FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FBE
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FBE#FFFFFF#000000##FFFFFF
##7A2FBE1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#6C5375
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a2fbe;
/* rgb */ color: rgb(122, 47, 190);
/* oklch */ color: oklch(48.8% 0.209 303.1);
Tailwind
colors: {
  custom: {
    50: '#a66fd3',
    500: '#7a2fbe',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fbe;
$custom-light: #a66fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fbe",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 271.469,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48842,
    "c": 0.20917,
    "h": 303.1
  },
  "luminance": 0.09888
}

Semantic roles & 50–950 ramp

primary
#7A2FBE
secondary
#A3CB7E
accent
#E34490
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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