#7B28C4#7B28C4

#7B28C4 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.8% C 0.222 H 302.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7B28C4
RGBrgb(123, 40, 196)
HSLhsl(272, 66%, 46%)
HSVhsv(272, 80%, 77%)
CMYKcmyk(37.2%, 79.6%, 0%, 23.1%)
CIE-LABlab(37.32, 61.94, -65.48)
CIE-LCHlch(37.32, 90.13, 313.41°)
OKLaboklab(48.8% 0.1199 -0.1869)
OKLCHoklch(48.8% 0.222 302.7)
XYZxyz(18.8886, 9.7140, 53.0937)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28C4 #71C428
analogous
#2D28C4 #7B28C4 #C428BF
triadic
#7B28C4 #C47B28 #28C47B
tetradic
#7B28C4 #C42D28 #71C428 #28BFC4
square
#7B28C4 #C42D28 #71C428 #28BFC4
split-complementary
#7B28C4 #BFC428 #28C42D
monochromatic
#3B135E #5B1E91 #7B28C4 #994EDB #B681E5

Accessibility & contrast

On white

7.14
#7B28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7B28C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28C4
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28C4#FFFFFF#000000##FFFFFF
##7B28C41.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0057C1
Tritanopia (blue-blind)
#6B5377
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b28c4;
/* rgb */ color: rgb(123, 40, 196);
/* oklch */ color: oklch(48.8% 0.222 302.7);
Tailwind
colors: {
  custom: {
    50: '#a86cd7',
    500: '#7b28c4',
    950: '#000000',
  },
}
SCSS
$custom: #7b28c4;
$custom-light: #a86cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28c4",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 271.923,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.488,
    "c": 0.2221,
    "h": 302.7
  },
  "luminance": 0.09714
}

Semantic roles & 50–950 ramp

primary
#7B28C4
secondary
#A1CE7A
accent
#E93F8E
background
#FAF6FD
surface
#F5ECFA
border
#CFC7D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7B28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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