#7A58B2#7A58B2

#7A58B2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 53.7% C 0.139 H 299.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7A58B2
RGBrgb(122, 88, 178)
HSLhsl(263, 37%, 52%)
HSVhsv(263, 51%, 70%)
CMYKcmyk(31.5%, 50.6%, 0%, 30.2%)
CIE-LABlab(44.70, 33.49, -43.03)
CIE-LCHlch(44.70, 54.53, 307.89°)
OKLaboklab(53.71% 0.0675 -0.1212)
OKLCHoklch(53.71% 0.139 299.1)
XYZxyz(19.5497, 14.3312, 43.8471)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A58B2 #90B258
analogous
#5863B2 #7A58B2 #A758B2
triadic
#7A58B2 #B27A58 #58B27A
tetradic
#7A58B2 #B25863 #90B258 #58B2A7
square
#7A58B2 #B25863 #90B258 #58B2A7
split-complementary
#7A58B2 #B2A758 #63B258
monochromatic
#412D62 #5D418C #7A58B2 #9B82C5 #BDACD9

Accessibility & contrast

On white

5.43
#7A58B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7A58B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A58B2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A58B2#FFFFFF#000000##FFFFFF
##7A58B21.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#4269B0
Tritanopia (blue-blind)
#6E697D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a58b2;
/* rgb */ color: rgb(122, 88, 178);
/* oklch */ color: oklch(53.7% 0.139 299.1);
Tailwind
colors: {
  custom: {
    50: '#a388c9',
    500: '#7a58b2',
    950: '#000000',
  },
}
SCSS
$custom: #7a58b2;
$custom-light: #a388c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a58b2",
  "rgb": {
    "r": 122,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 262.667,
    "s": 36.885,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53711,
    "c": 0.13876,
    "h": 299.1
  },
  "luminance": 0.14331
}

Semantic roles & 50–950 ramp

primary
#7A58B2
secondary
#B8C79F
accent
#CD5BA2
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7A58B2

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

Preview Lab → · Contrast checker → · Palette generator →

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