#7538BD#7538BD

#7538BD is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.197 H 300.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7538BD
RGBrgb(117, 56, 189)
HSLhsl(268, 54%, 48%)
HSVhsv(268, 70%, 74%)
CMYKcmyk(38.1%, 70.4%, 0%, 25.9%)
CIE-LABlab(38.35, 52.52, -59.74)
CIE-LCHlch(38.35, 79.55, 311.32°)
OKLaboklab(49.18% 0.0989 -0.1704)
OKLCHoklch(49.18% 0.197 300.1)
XYZxyz(17.9333, 10.2842, 49.1745)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7538BD #80BD38
analogous
#383DBD #7538BD #B738BD
triadic
#7538BD #BD7538 #38BD75
tetradic
#7538BD #BD383D #80BD38 #38BDB7
square
#7538BD #BD383D #80BD38 #38BDB7
split-complementary
#7538BD #BDB738 #3DBD38
monochromatic
#3B1C5F #582A8E #7538BD #9562D0 #B491DE

Accessibility & contrast

On white

6.87
#7538BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7538BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7538BD
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7538BD#FFFFFF#000000##FFFFFF
##7538BD1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#655877
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7538bd;
/* rgb */ color: rgb(117, 56, 189);
/* oklch */ color: oklch(49.2% 0.197 300.1);
Tailwind
colors: {
  custom: {
    50: '#a374d2',
    500: '#7538bd',
    950: '#000000',
  },
}
SCSS
$custom: #7538bd;
$custom-light: #a374d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7538bd",
  "rgb": {
    "r": 117,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 267.519,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4918,
    "c": 0.19702,
    "h": 300.1
  },
  "luminance": 0.10284
}

Semantic roles & 50–950 ramp

primary
#7538BD
secondary
#ABC987
accent
#DE4A9A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7538BD

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

Preview Lab → · Contrast checker → · Palette generator →

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