#7B28B3#7B28B3

#7B28B3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.206 H 307.1°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#7B28B3
RGBrgb(123, 40, 179)
HSLhsl(276, 63%, 43%)
HSVhsv(276, 78%, 70%)
CMYKcmyk(31.3%, 77.7%, 0%, 29.8%)
CIE-LABlab(35.95, 58.12, -57.70)
CIE-LCHlch(35.95, 81.90, 315.21°)
OKLaboklab(47.42% 0.1243 -0.1641)
OKLCHoklch(47.42% 0.206 307.1)
XYZxyz(17.0621, 8.9834, 43.4742)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B28B3 #60B328
analogous
#3528B3 #7B28B3 #B328A5
triadic
#7B28B3 #B37B28 #28B37B
tetradic
#7B28B3 #B33528 #60B328 #28A5B3
square
#7B28B3 #B33528 #60B328 #28A5B3
split-complementary
#7B28B3 #A5B328 #28B335
monochromatic
#36124F #591D81 #7B28B3 #9A43D5 #B575E0

Accessibility & contrast

On white

7.51
#7B28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7B28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B28B3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B28B3#FFFFFF#000000##FFFFFF
##7B28B31.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#714B6D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b28b3;
/* rgb */ color: rgb(123, 40, 179);
/* oklch */ color: oklch(47.4% 0.206 307.1);
Tailwind
colors: {
  custom: {
    50: '#a76ccb',
    500: '#7b28b3',
    950: '#000000',
  },
}
SCSS
$custom: #7b28b3;
$custom-light: #a76ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b28b3",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 275.827,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47416,
    "c": 0.20583,
    "h": 307.1
  },
  "luminance": 0.08983
}

Semantic roles & 50–950 ramp

primary
#7B28B3
secondary
#93C86F
accent
#E64184
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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