#7B2FB4#7B2FB4

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

Color values

HEX#7B2FB4
RGBrgb(123, 47, 180)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(31.7%, 73.9%, 0%, 29.4%)
CIE-LABlab(37.00, 55.56, -56.59)
CIE-LCHlch(37.00, 79.30, 314.48°)
OKLaboklab(48.18% 0.1178 -0.1608)
OKLCHoklch(48.18% 0.199 306.2)
XYZxyz(17.4213, 9.5394, 44.0947)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FB4 #68B42F
analogous
#392FB4 #7B2FB4 #B42FAA
triadic
#7B2FB4 #B47B2F #2FB47B
tetradic
#7B2FB4 #B4392F #68B42F #2FAAB4
square
#7B2FB4 #B4392F #68B42F #2FAAB4
split-complementary
#7B2FB4 #AAB42F #2FB439
monochromatic
#391653 #5A2283 #7B2FB4 #994FD1 #B580DE

Accessibility & contrast

On white

7.22
#7B2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7B2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FB4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FB4#FFFFFF#000000##FFFFFF
##7B2FB41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b2fb4;
/* rgb */ color: rgb(123, 47, 180);
/* oklch */ color: oklch(48.2% 0.199 306.2);
Tailwind
colors: {
  custom: {
    50: '#a66fcb',
    500: '#7b2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fb4;
$custom-light: #a66fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fb4",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 274.286,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48179,
    "c": 0.19935,
    "h": 306.2
  },
  "luminance": 0.09539
}

Semantic roles & 50–950 ramp

primary
#7B2FB4
secondary
#9AC778
accent
#E24689
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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