#7B28B0#7B28B0

#7B28B0 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.2% C 0.203 H 308.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7B28B0
RGBrgb(123, 40, 176)
HSLhsl(277, 63%, 42%)
HSVhsv(277, 77%, 69%)
CMYKcmyk(30.1%, 77.3%, 0%, 31%)
CIE-LABlab(35.72, 57.46, -56.29)
CIE-LCHlch(35.72, 80.44, 315.59°)
OKLaboklab(47.18% 0.125 -0.1599)
OKLCHoklch(47.18% 0.203 308)
XYZxyz(16.7620, 8.8634, 41.8937)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B0 #5DB028
analogous
#3728B0 #7B28B0 #B028A1
triadic
#7B28B0 #B07B28 #28B07B
tetradic
#7B28B0 #B03728 #5DB028 #28A1B0
square
#7B28B0 #B03728 #5DB028 #28A1B0
split-complementary
#7B28B0 #A1B028 #28B037
monochromatic
#35114C #581D7E #7B28B0 #9B41D4 #B573DF

Accessibility & contrast

On white

7.57
#7B28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7B28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28B0
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B0#FFFFFF#000000##FFFFFF
##7B28B01.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B4
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#724A6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7b28b0;
/* rgb */ color: rgb(123, 40, 176);
/* oklch */ color: oklch(47.2% 0.203 308.0);
Tailwind
colors: {
  custom: {
    50: '#a66bc8',
    500: '#7b28b0',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b0;
$custom-light: #a66bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b0",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 276.618,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4718,
    "c": 0.20297,
    "h": 308
  },
  "luminance": 0.08863
}

Semantic roles & 50–950 ramp

primary
#7B28B0
secondary
#90C66D
accent
#E64282
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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