#7B28C5#7B28C5

#7B28C5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.9% C 0.223 H 302.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7B28C5
RGBrgb(123, 40, 197)
HSLhsl(272, 66%, 46%)
HSVhsv(272, 80%, 77%)
CMYKcmyk(37.6%, 79.7%, 0%, 22.7%)
CIE-LABlab(37.41, 62.16, -65.93)
CIE-LCHlch(37.41, 90.61, 313.32°)
OKLaboklab(48.88% 0.1196 -0.1882)
OKLCHoklch(48.88% 0.223 302.4)
XYZxyz(19.0028, 9.7597, 53.6952)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28C5 #72C528
analogous
#2D28C5 #7B28C5 #C528C1
triadic
#7B28C5 #C57B28 #28C57B
tetradic
#7B28C5 #C52D28 #72C528 #28C1C5
square
#7B28C5 #C52D28 #72C528 #28C1C5
split-complementary
#7B28C5 #C1C528 #28C52D
monochromatic
#3B135F #5B1E92 #7B28C5 #994FDB #B782E6

Accessibility & contrast

On white

7.11
#7B28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7B28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28C5
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28C5#FFFFFF#000000##FFFFFF
##7B28C51.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#6B5377
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b28c5;
/* rgb */ color: rgb(123, 40, 197);
/* oklch */ color: oklch(48.9% 0.223 302.4);
Tailwind
colors: {
  custom: {
    50: '#a86cd8',
    500: '#7b28c5',
    950: '#000000',
  },
}
SCSS
$custom: #7b28c5;
$custom-light: #a86cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28c5",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 271.72,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48884,
    "c": 0.22305,
    "h": 302.4
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#7B28C5
secondary
#A2CE7A
accent
#E93F8F
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7B28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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