#7E38AF#7E38AF

#7E38AF is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.2% C 0.184 H 308.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7E38AF
RGBrgb(126, 56, 175)
HSLhsl(275, 52%, 45%)
HSVhsv(275, 68%, 69%)
CMYKcmyk(28%, 68%, 0%, 31.4%)
CIE-LABlab(38.48, 50.99, -51.21)
CIE-LCHlch(38.48, 72.27, 314.88°)
OKLaboklab(49.2% 0.1133 -0.145)
OKLCHoklch(49.2% 0.184 308)
XYZxyz(17.7546, 10.3594, 41.6134)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38AF #69AF38
analogous
#4238AF #7E38AF #AF38A4
triadic
#7E38AF #AF7E38 #38AF7E
tetradic
#7E38AF #AF4238 #69AF38 #38A4AF
square
#7E38AF #AF4238 #69AF38 #38A4AF
split-complementary
#7E38AF #A4AF38 #38AF42
monochromatic
#3B1A52 #5D2981 #7E38AF #9C5ACA #B888D9

Accessibility & contrast

On white

6.84
#7E38AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E38AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38AF
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38AF#FFFFFF#000000##FFFFFF
##7E38AF1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#1E5BAC
Tritanopia (blue-blind)
#76526F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e38af;
/* rgb */ color: rgb(126, 56, 175);
/* oklch */ color: oklch(49.2% 0.184 308.0);
Tailwind
colors: {
  custom: {
    50: '#a774c8',
    500: '#7e38af',
    950: '#000000',
  },
}
SCSS
$custom: #7e38af;
$custom-light: #a774c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38af",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 275.294,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49203,
    "c": 0.18399,
    "h": 308
  },
  "luminance": 0.10359
}

Semantic roles & 50–950 ramp

primary
#7E38AF
secondary
#9BC380
accent
#DB4D87
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E38AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7E38AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva