#7B28B5#7B28B5

#7B28B5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.208 H 306.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7B28B5
RGBrgb(123, 40, 181)
HSLhsl(275, 64%, 43%)
HSVhsv(275, 78%, 71%)
CMYKcmyk(32%, 77.9%, 0%, 29%)
CIE-LABlab(36.11, 58.57, -58.63)
CIE-LCHlch(36.11, 82.87, 314.97°)
OKLaboklab(47.57% 0.1238 -0.1668)
OKLCHoklch(47.57% 0.208 306.6)
XYZxyz(17.2658, 9.0649, 44.5472)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B5 #62B528
analogous
#3428B5 #7B28B5 #B528A8
triadic
#7B28B5 #B57B28 #28B57B
tetradic
#7B28B5 #B53428 #62B528 #28A8B5
square
#7B28B5 #B53428 #62B528 #28A8B5
split-complementary
#7B28B5 #A8B528 #28B534
monochromatic
#371251 #591D83 #7B28B5 #9A44D6 #B577E1

Accessibility & contrast

On white

7.47
#7B28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B28B5
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B5#FFFFFF#000000##FFFFFF
##7B28B51.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#714C6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b28b5;
/* rgb */ color: rgb(123, 40, 181);
/* oklch */ color: oklch(47.6% 0.208 306.6);
Tailwind
colors: {
  custom: {
    50: '#a76ccc',
    500: '#7b28b5',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b5;
$custom-light: #a76ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b5",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 275.319,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47574,
    "c": 0.20774,
    "h": 306.6
  },
  "luminance": 0.09065
}

Semantic roles & 50–950 ramp

primary
#7B28B5
secondary
#95C870
accent
#E74185
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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