#7A4BEB#7A4BEB

#7A4BEB is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.8% C 0.227 H 290.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7A4BEB
RGBrgb(122, 75, 235)
HSLhsl(258, 80%, 61%)
HSVhsv(258, 68%, 92%)
CMYKcmyk(48.1%, 68.1%, 0%, 7.8%)
CIE-LABlab(45.86, 55.97, -73.93)
CIE-LCHlch(45.86, 92.73, 307.13°)
OKLaboklab(55.78% 0.0798 -0.212)
OKLCHoklch(55.78% 0.227 290.6)
XYZxyz(25.5332, 15.1669, 80.1633)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4BEB #BCEB4B
analogous
#4B6CEB #7A4BEB #CA4BEB
triadic
#7A4BEB #EB7A4B #4BEB7A
tetradic
#7A4BEB #EB4B6C #BCEB4B #4BEBCA
square
#7A4BEB #EB4B6C #BCEB4B #4BEBCA
split-complementary
#7A4BEB #EBCA4B #6CEB4B
monochromatic
#3F13A9 #5319E0 #7A4BEB #A382F1 #CBB9F7

Accessibility & contrast

On white

5.21
#7A4BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7A4BEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4BEB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4BEB#FFFFFF#000000##FFFFFF
##7A4BEB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#557395
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a4beb;
/* rgb */ color: rgb(122, 75, 235);
/* oklch */ color: oklch(55.8% 0.227 290.6);
Tailwind
colors: {
  custom: {
    50: '#a981f3',
    500: '#7a4beb',
    950: '#000000',
  },
}
SCSS
$custom: #7a4beb;
$custom-light: #a981f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4beb",
  "rgb": {
    "r": 122,
    "g": 75,
    "b": 235
  },
  "hsl": {
    "h": 257.625,
    "s": 80,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55779,
    "c": 0.22653,
    "h": 290.6
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#7A4BEB
secondary
#D5E7AB
accent
#DC099E
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110A17
muted
#807C85

Preview Lab

Preview with #7A4BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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