#7A2FB4#7A2FB4

#7A2FB4 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.199 H 305.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7A2FB4
RGBrgb(122, 47, 180)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(32.2%, 73.9%, 0%, 29.4%)
CIE-LABlab(36.87, 55.37, -56.81)
CIE-LCHlch(36.87, 79.33, 314.26°)
OKLaboklab(48.05% 0.1164 -0.1615)
OKLCHoklch(48.05% 0.199 305.8)
XYZxyz(17.2790, 9.4660, 44.0880)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FB4 #69B42F
analogous
#382FB4 #7A2FB4 #B42FAB
triadic
#7A2FB4 #B47A2F #2FB47A
tetradic
#7A2FB4 #B4382F #69B42F #2FABB4
square
#7A2FB4 #B4382F #69B42F #2FABB4
split-complementary
#7A2FB4 #ABB42F #2FB438
monochromatic
#381653 #592283 #7A2FB4 #984FD1 #B580DE

Accessibility & contrast

On white

7.26
#7A2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FB4
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FB4#FFFFFF#000000##FFFFFF
##7A2FB41.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#704F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2fb4;
/* rgb */ color: rgb(122, 47, 180);
/* oklch */ color: oklch(48.1% 0.199 305.8);
Tailwind
colors: {
  custom: {
    50: '#a66fcb',
    500: '#7a2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fb4;
$custom-light: #a66fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fb4",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 273.835,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48054,
    "c": 0.1991,
    "h": 305.8
  },
  "luminance": 0.09466
}

Semantic roles & 50–950 ramp

primary
#7A2FB4
secondary
#9AC778
accent
#E2468A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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