#7A2FBD#7A2FBD

#7A2FBD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.8% C 0.208 H 303.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#7A2FBD
RGBrgb(122, 47, 189)
HSLhsl(272, 60%, 46%)
HSVhsv(272, 75%, 74%)
CMYKcmyk(35.4%, 75.1%, 0%, 25.9%)
CIE-LABlab(37.56, 57.46, -60.99)
CIE-LCHlch(37.56, 83.79, 313.29°)
OKLaboklab(48.76% 0.1145 -0.1738)
OKLCHoklch(48.76% 0.208 303.4)
XYZxyz(18.2257, 9.8447, 49.0743)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FBD #72BD2F
analogous
#332FBD #7A2FBD #BD2FB9
triadic
#7A2FBD #BD7A2F #2FBD7A
tetradic
#7A2FBD #BD332F #72BD2F #2FB9BD
square
#7A2FBD #BD332F #72BD2F #2FB9BD
split-complementary
#7A2FBD #B9BD2F #2FBD33
monochromatic
#3B175B #5A238C #7A2FBD #9855D5 #B686E1

Accessibility & contrast

On white

7.07
#7A2FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7A2FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FBD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FBD#FFFFFF#000000##FFFFFF
##7A2FBD1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#6C5374
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a2fbd;
/* rgb */ color: rgb(122, 47, 189);
/* oklch */ color: oklch(48.8% 0.208 303.4);
Tailwind
colors: {
  custom: {
    50: '#a66fd2',
    500: '#7a2fbd',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fbd;
$custom-light: #a66fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fbd",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 271.69,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48762,
    "c": 0.20817,
    "h": 303.4
  },
  "luminance": 0.09845
}

Semantic roles & 50–950 ramp

primary
#7A2FBD
secondary
#A2CA7E
accent
#E3448F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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