#7538BA#7538BA

#7538BA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.9% C 0.194 H 300.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#7538BA
RGBrgb(117, 56, 186)
HSLhsl(268, 54%, 47%)
HSVhsv(268, 70%, 73%)
CMYKcmyk(37.1%, 69.9%, 0%, 27.1%)
CIE-LABlab(38.12, 51.77, -58.35)
CIE-LCHlch(38.12, 78.01, 311.58°)
OKLaboklab(48.95% 0.0994 -0.1663)
OKLCHoklch(48.95% 0.194 300.9)
XYZxyz(17.6111, 10.1553, 47.4772)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7538BA #7DBA38
analogous
#383CBA #7538BA #B638BA
triadic
#7538BA #BA7538 #38BA75
tetradic
#7538BA #BA383C #7DBA38 #38BAB6
square
#7538BA #BA383C #7DBA38 #38BAB6
split-complementary
#7538BA #BAB638 #3CBA38
monochromatic
#3A1C5C #572A8B #7538BA #9460CF #B48FDD

Accessibility & contrast

On white

6.93
#7538BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7538BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7538BA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7538BA#FFFFFF#000000##FFFFFF
##7538BA1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#665775
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7538ba;
/* rgb */ color: rgb(117, 56, 186);
/* oklch */ color: oklch(48.9% 0.194 300.9);
Tailwind
colors: {
  custom: {
    50: '#a273d0',
    500: '#7538ba',
    950: '#000000',
  },
}
SCSS
$custom: #7538ba;
$custom-light: #a273d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7538ba",
  "rgb": {
    "r": 117,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 268.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48946,
    "c": 0.19375,
    "h": 300.9
  },
  "luminance": 0.10155
}

Semantic roles & 50–950 ramp

primary
#7538BA
secondary
#A9C886
accent
#DD4B98
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7538BA

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

Preview Lab → · Contrast checker → · Palette generator →

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