#7538C2#7538C2

#7538C2 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.6% C 0.202 H 299.0°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7538C2
RGBrgb(117, 56, 194)
HSLhsl(267, 55%, 49%)
HSVhsv(267, 71%, 76%)
CMYKcmyk(39.7%, 71.1%, 0%, 23.9%)
CIE-LABlab(38.73, 53.77, -62.04)
CIE-LCHlch(38.73, 82.10, 310.91°)
OKLaboklab(49.58% 0.098 -0.1771)
OKLCHoklch(49.58% 0.202 299)
XYZxyz(18.4854, 10.5051, 52.0822)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7538C2 #85C238
analogous
#3840C2 #7538C2 #BA38C2
triadic
#7538C2 #C27538 #38C275
tetradic
#7538C2 #C23840 #85C238 #38C2BA
square
#7538C2 #C23840 #85C238 #38C2BA
split-complementary
#7538C2 #C2BA38 #40C238
monochromatic
#3C1D63 #582A93 #7538C2 #9565D2 #B694E0

Accessibility & contrast

On white

6.77
#7538C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7538C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7538C2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7538C2#FFFFFF#000000##FFFFFF
##7538C21.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#635A79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7538c2;
/* rgb */ color: rgb(117, 56, 194);
/* oklch */ color: oklch(49.6% 0.202 299.0);
Tailwind
colors: {
  custom: {
    50: '#a374d5',
    500: '#7538c2',
    950: '#000000',
  },
}
SCSS
$custom: #7538c2;
$custom-light: #a374d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7538c2",
  "rgb": {
    "r": 117,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 266.522,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49575,
    "c": 0.20246,
    "h": 299
  },
  "luminance": 0.10505
}

Semantic roles & 50–950 ramp

primary
#7538C2
secondary
#AFCB8A
accent
#DF499D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7538C2

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

Preview Lab → · Contrast checker → · Palette generator →

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