#7538AF#7538AF

#7538AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.182 H 303.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7538AF
RGBrgb(117, 56, 175)
HSLhsl(271, 52%, 45%)
HSVhsv(271, 68%, 69%)
CMYKcmyk(33.1%, 68%, 0%, 31.4%)
CIE-LABlab(37.31, 49.07, -53.16)
CIE-LCHlch(37.31, 72.34, 312.71°)
OKLaboklab(48.11% 0.101 -0.151)
OKLCHoklch(48.11% 0.182 303.8)
XYZxyz(16.4864, 9.7054, 41.5539)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7538AF #72AF38
analogous
#3938AF #7538AF #AF38AD
triadic
#7538AF #AF7538 #38AF75
tetradic
#7538AF #AF3938 #72AF38 #38ADAF
square
#7538AF #AF3938 #72AF38 #38ADAF
split-complementary
#7538AF #ADAF38 #38AF39
monochromatic
#371A52 #562981 #7538AF #945ACA #B288D9

Accessibility & contrast

On white

7.14
#7538AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7538AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7538AF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7538AF#FFFFFF#000000##FFFFFF
##7538AF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0558AC
Tritanopia (blue-blind)
#6A536F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7538af;
/* rgb */ color: rgb(117, 56, 175);
/* oklch */ color: oklch(48.1% 0.182 303.8);
Tailwind
colors: {
  custom: {
    50: '#a173c8',
    500: '#7538af',
    950: '#000000',
  },
}
SCSS
$custom: #7538af;
$custom-light: #a173c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7538af",
  "rgb": {
    "r": 117,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 270.756,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4811,
    "c": 0.18168,
    "h": 303.8
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#7538AF
secondary
#A1C380
accent
#DB4D92
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7538AF

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

Preview Lab → · Contrast checker → · Palette generator →

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