#7A5FCC#7A5FCC

#7A5FCC is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.5% C 0.162 H 291.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7A5FCC
RGBrgb(122, 95, 204)
HSLhsl(255, 52%, 59%)
HSVhsv(255, 53%, 80%)
CMYKcmyk(40.2%, 53.4%, 0%, 20%)
CIE-LABlab(47.86, 36.40, -53.07)
CIE-LCHlch(47.86, 64.35, 304.45°)
OKLaboklab(56.55% 0.0602 -0.1507)
OKLCHoklch(56.55% 0.162 291.8)
XYZxyz(23.0144, 16.6810, 59.1222)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5FCC #B1CC5F
analogous
#5F7ACC #7A5FCC #B05FCC
triadic
#7A5FCC #CC7A5F #5FCC7A
tetradic
#7A5FCC #CC5F7A #B1CC5F #5FCCB0
square
#7A5FCC #CC5F7A #B1CC5F #5FCCB0
split-complementary
#7A5FCC #CCB05F #7ACC5F
monochromatic
#412B86 #5839B4 #7A5FCC #A18DDB #C7BCEA

Accessibility & contrast

On white

4.84
#7A5FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7A5FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5FCC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5FCC#FFFFFF#000000##FFFFFF
##7A5FCC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D73D0
Deuteranopia (green-blind)
#326FCA
Tritanopia (blue-blind)
#64768C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a5fcc;
/* rgb */ color: rgb(122, 95, 204);
/* oklch */ color: oklch(56.5% 0.162 291.8);
Tailwind
colors: {
  custom: {
    50: '#a58ddc',
    500: '#7a5fcc',
    950: '#000000',
  },
}
SCSS
$custom: #7a5fcc;
$custom-light: #a58ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5fcc",
  "rgb": {
    "r": 122,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 254.862,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56549,
    "c": 0.16225,
    "h": 291.8
  },
  "luminance": 0.16682
}

Semantic roles & 50–950 ramp

primary
#7A5FCC
secondary
#CED9AE
accent
#DB4DB8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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