#7E28B2#7E28B2

#7E28B2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.206 H 308.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7E28B2
RGBrgb(126, 40, 178)
HSLhsl(277, 63%, 43%)
HSVhsv(277, 78%, 70%)
CMYKcmyk(29.2%, 77.5%, 0%, 30.2%)
CIE-LABlab(36.31, 58.44, -56.51)
CIE-LCHlch(36.31, 81.29, 315.96°)
OKLaboklab(47.73% 0.1286 -0.1605)
OKLCHoklch(47.73% 0.206 308.7)
XYZxyz(17.3972, 9.1679, 42.9639)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E28B2 #5CB228
analogous
#3928B2 #7E28B2 #B228A1
triadic
#7E28B2 #B27E28 #28B27E
tetradic
#7E28B2 #B23928 #5CB228 #28A1B2
square
#7E28B2 #B23928 #5CB228 #28A1B2
split-complementary
#7E28B2 #A1B228 #28B239
monochromatic
#37124E #5B1D80 #7E28B2 #9E43D5 #B775E0

Accessibility & contrast

On white

7.41
#7E28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E28B2
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E28B2#FFFFFF#000000##FFFFFF
##7E28B21.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#764A6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e28b2;
/* rgb */ color: rgb(126, 40, 178);
/* oklch */ color: oklch(47.7% 0.206 308.7);
Tailwind
colors: {
  custom: {
    50: '#a86cca',
    500: '#7e28b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e28b2;
$custom-light: #a86cca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e28b2",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 277.391,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47729,
    "c": 0.20567,
    "h": 308.7
  },
  "luminance": 0.09168
}

Semantic roles & 50–950 ramp

primary
#7E28B2
secondary
#90C76F
accent
#E64180
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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