#7A28B3#7A28B3

#7A28B3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.3% C 0.206 H 306.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7A28B3
RGBrgb(122, 40, 179)
HSLhsl(275, 63%, 43%)
HSVhsv(275, 78%, 70%)
CMYKcmyk(31.8%, 77.7%, 0%, 29.8%)
CIE-LABlab(35.81, 57.95, -57.94)
CIE-LCHlch(35.81, 81.94, 315.01°)
OKLaboklab(47.29% 0.1229 -0.1648)
OKLCHoklch(47.29% 0.206 306.7)
XYZxyz(16.9197, 8.9100, 43.4675)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B3 #61B328
analogous
#3528B3 #7A28B3 #B328A6
triadic
#7A28B3 #B37A28 #28B37A
tetradic
#7A28B3 #B33528 #61B328 #28A6B3
square
#7A28B3 #B33528 #61B328 #28A6B3
split-complementary
#7A28B3 #A6B328 #28B335
monochromatic
#36124F #581D81 #7A28B3 #9943D5 #B475E0

Accessibility & contrast

On white

7.55
#7A28B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7A28B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B3
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B3#FFFFFF#000000##FFFFFF
##7A28B31.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a28b3;
/* rgb */ color: rgb(122, 40, 179);
/* oklch */ color: oklch(47.3% 0.206 306.7);
Tailwind
colors: {
  custom: {
    50: '#a66bcb',
    500: '#7a28b3',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b3;
$custom-light: #a66bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b3",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 275.396,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47286,
    "c": 0.20558,
    "h": 306.7
  },
  "luminance": 0.0891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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