#7538AE#7538AE

#7538AE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.0% C 0.181 H 304.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7538AE
RGBrgb(117, 56, 174)
HSLhsl(271, 51%, 45%)
HSVhsv(271, 68%, 68%)
CMYKcmyk(32.8%, 67.8%, 0%, 31.8%)
CIE-LABlab(37.24, 48.83, -52.68)
CIE-LCHlch(37.24, 71.83, 312.82°)
OKLaboklab(48.04% 0.1011 -0.1496)
OKLCHoklch(48.04% 0.181 304)
XYZxyz(16.3885, 9.6663, 41.0386)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7538AE #71AE38
analogous
#3A38AE #7538AE #AE38AC
triadic
#7538AE #AE7538 #38AE75
tetradic
#7538AE #AE3A38 #71AE38 #38ACAE
square
#7538AE #AE3A38 #71AE38 #38ACAE
split-complementary
#7538AE #ACAE38 #38AE3A
monochromatic
#371A51 #562980 #7538AE #9459CA #B288D9

Accessibility & contrast

On white

7.16
#7538AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7538AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7538AE
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7538AE#FFFFFF#000000##FFFFFF
##7538AE1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0A58AB
Tritanopia (blue-blind)
#6A526E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7538ae;
/* rgb */ color: rgb(117, 56, 174);
/* oklch */ color: oklch(48.0% 0.181 304.0);
Tailwind
colors: {
  custom: {
    50: '#a173c7',
    500: '#7538ae',
    950: '#000000',
  },
}
SCSS
$custom: #7538ae;
$custom-light: #a173c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7538ae",
  "rgb": {
    "r": 117,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 271.017,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48036,
    "c": 0.18058,
    "h": 304
  },
  "luminance": 0.09666
}

Semantic roles & 50–950 ramp

primary
#7538AE
secondary
#A0C37F
accent
#DB4D91
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7538AE

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

Preview Lab → · Contrast checker → · Palette generator →

#7538AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva