#7A2FB9#7A2FB9

#7A2FB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.204 H 304.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB9
RGBrgb(122, 47, 185)
HSLhsl(273, 59%, 45%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(34.1%, 74.6%, 0%, 27.5%)
CIE-LABlab(37.25, 56.53, -59.15)
CIE-LCHlch(37.25, 81.81, 313.70°)
OKLaboklab(48.45% 0.1154 -0.1684)
OKLCHoklch(48.45% 0.204 304.4)
XYZxyz(17.7975, 9.6735, 46.8191)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB9 #6EB92F
analogous
#352FB9 #7A2FB9 #B92FB3
triadic
#7A2FB9 #B97A2F #2FB97A
tetradic
#7A2FB9 #B9352F #6EB92F #2FB3B9
square
#7A2FB9 #B9352F #6EB92F #2FB3B9
split-complementary
#7A2FB9 #B3B92F #2FB935
monochromatic
#3A1657 #5A2388 #7A2FB9 #9852D3 #B583DF

Accessibility & contrast

On white

7.16
#7A2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7A2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FB9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB9#FFFFFF#000000##FFFFFF
##7A2FB91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#6E5172
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2fb9;
/* rgb */ color: rgb(122, 47, 185);
/* oklch */ color: oklch(48.4% 0.204 304.4);
Tailwind
colors: {
  custom: {
    50: '#a66fcf',
    500: '#7a2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb9;
$custom-light: #a66fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb9",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 272.609,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48445,
    "c": 0.20414,
    "h": 304.4
  },
  "luminance": 0.09673
}

Semantic roles & 50–950 ramp

primary
#7A2FB9
secondary
#9FC97B
accent
#E3458D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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