#7A28B0#7A28B0

#7A28B0 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.203 H 307.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7A28B0
RGBrgb(122, 40, 176)
HSLhsl(276, 63%, 42%)
HSVhsv(276, 77%, 69%)
CMYKcmyk(30.7%, 77.3%, 0%, 31%)
CIE-LABlab(35.58, 57.28, -56.53)
CIE-LCHlch(35.58, 80.48, 315.38°)
OKLaboklab(47.05% 0.1236 -0.1607)
OKLCHoklch(47.05% 0.203 307.6)
XYZxyz(16.6196, 8.7900, 41.8870)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B0 #5EB028
analogous
#3628B0 #7A28B0 #B028A2
triadic
#7A28B0 #B07A28 #28B07A
tetradic
#7A28B0 #B03628 #5EB028 #28A2B0
square
#7A28B0 #B03628 #5EB028 #28A2B0
split-complementary
#7A28B0 #A2B028 #28B036
monochromatic
#35114C #571D7E #7A28B0 #9A41D4 #B473DF

Accessibility & contrast

On white

7.61
#7A28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B0
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B0#FFFFFF#000000##FFFFFF
##7A28B01.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a28b0;
/* rgb */ color: rgb(122, 40, 176);
/* oklch */ color: oklch(47.0% 0.203 307.6);
Tailwind
colors: {
  custom: {
    50: '#a66bc8',
    500: '#7a28b0',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b0;
$custom-light: #a66bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b0",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 276.176,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47049,
    "c": 0.20271,
    "h": 307.6
  },
  "luminance": 0.0879
}

Semantic roles & 50–950 ramp

primary
#7A28B0
secondary
#91C66D
accent
#E64283
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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