#7B2FA8#7B2FA8

#7B2FA8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.187 H 309.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7B2FA8
RGBrgb(123, 47, 168)
HSLhsl(278, 56%, 42%)
HSVhsv(278, 72%, 66%)
CMYKcmyk(26.8%, 72%, 0%, 34.1%)
CIE-LABlab(36.12, 52.85, -50.86)
CIE-LCHlch(36.12, 73.35, 316.10°)
OKLaboklab(47.28% 0.1198 -0.144)
OKLCHoklch(47.28% 0.187 309.7)
XYZxyz(16.2514, 9.0715, 37.9331)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2FA8 #5CA82F
analogous
#3F2FA8 #7B2FA8 #A82F99
triadic
#7B2FA8 #A87B2F #2FA87B
tetradic
#7B2FA8 #A83F2F #5CA82F #2F99A8
square
#7B2FA8 #A83F2F #5CA82F #2F99A8
split-complementary
#7B2FA8 #99A82F #2FA83F
monochromatic
#351448 #582278 #7B2FA8 #9B48CC #B578D9

Accessibility & contrast

On white

7.46
#7B2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7B2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2FA8
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2FA8#FFFFFF#000000##FFFFFF
##7B2FA81.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1656A5
Tritanopia (blue-blind)
#754A68
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2fa8;
/* rgb */ color: rgb(123, 47, 168);
/* oklch */ color: oklch(47.3% 0.187 309.7);
Tailwind
colors: {
  custom: {
    50: '#a56ec3',
    500: '#7b2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7b2fa8;
$custom-light: #a56ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2fa8",
  "rgb": {
    "r": 123,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 277.686,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47277,
    "c": 0.18732,
    "h": 309.7
  },
  "luminance": 0.09071
}

Semantic roles & 50–950 ramp

primary
#7B2FA8
secondary
#8FC171
accent
#E04881
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7B2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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