#7A5FDB#7A5FDB

#7A5FDB is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.6% C 0.182 H 289.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7A5FDB
RGBrgb(122, 95, 219)
HSLhsl(253, 63%, 62%)
HSVhsv(253, 57%, 86%)
CMYKcmyk(44.3%, 56.6%, 0%, 14.1%)
CIE-LABlab(48.80, 40.61, -60.10)
CIE-LCHlch(48.80, 72.54, 304.04°)
OKLaboklab(57.56% 0.0605 -0.1713)
OKLCHoklch(57.56% 0.182 289.5)
XYZxyz(24.9008, 17.4356, 69.0575)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FDB #C0DB5F
analogous
#5F82DB #7A5FDB #B85FDB
triadic
#7A5FDB #DB7A5F #5FDB7A
tetradic
#7A5FDB #DB5F82 #C0DB5F #5FDBB8
square
#7A5FDB #DB5F82 #C0DB5F #5FDBB8
split-complementary
#7A5FDB #DBB85F #82DB5F
monochromatic
#3E239C #512ECE #7A5FDB #A491E6 #CDC3F1

Accessibility & contrast

On white

4.68
#7A5FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7A5FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5FDB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FDB#FFFFFF#000000##FFFFFF
##7A5FDB1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F76DF
Deuteranopia (green-blind)
#1771D8
Tritanopia (blue-blind)
#5D7A94
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5fdb;
/* rgb */ color: rgb(122, 95, 219);
/* oklch */ color: oklch(57.6% 0.182 289.5);
Tailwind
colors: {
  custom: {
    50: '#a68de7',
    500: '#7a5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fdb;
$custom-light: #a68de7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fdb",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 253.065,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57555,
    "c": 0.18172,
    "h": 289.5
  },
  "luminance": 0.17436
}

Semantic roles & 50–950 ramp

primary
#7A5FDB
secondary
#D8E2B4
accent
#CB1AA5
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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