#7B28B8#7B28B8

#7B28B8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.211 H 305.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7B28B8
RGBrgb(123, 40, 184)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 72%)
CMYKcmyk(33.2%, 78.3%, 0%, 27.8%)
CIE-LABlab(36.35, 59.23, -60.02)
CIE-LCHlch(36.35, 84.33, 314.62°)
OKLaboklab(47.81% 0.1231 -0.1709)
OKLCHoklch(47.81% 0.211 305.8)
XYZxyz(17.5770, 9.1894, 46.1859)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B8 #65B828
analogous
#3328B8 #7B28B8 #B828AD
triadic
#7B28B8 #B87B28 #28B87B
tetradic
#7B28B8 #B83328 #65B828 #28ADB8
square
#7B28B8 #B83328 #65B828 #28ADB8
split-complementary
#7B28B8 #ADB828 #28B833
monochromatic
#381253 #591D86 #7B28B8 #9A46D7 #B579E2

Accessibility & contrast

On white

7.40
#7B28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7B28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28B8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B8#FFFFFF#000000##FFFFFF
##7B28B81.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#704D70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b28b8;
/* rgb */ color: rgb(123, 40, 184);
/* oklch */ color: oklch(47.8% 0.211 305.8);
Tailwind
colors: {
  custom: {
    50: '#a76cce',
    500: '#7b28b8',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b8;
$custom-light: #a76cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b8",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 274.583,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47814,
    "c": 0.21061,
    "h": 305.8
  },
  "luminance": 0.09189
}

Semantic roles & 50–950 ramp

primary
#7B28B8
secondary
#97CA72
accent
#E74187
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7B28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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