#7E38B2#7E38B2

#7E38B2 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.187 H 307.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7E38B2
RGBrgb(126, 56, 178)
HSLhsl(274, 52%, 46%)
HSVhsv(274, 69%, 70%)
CMYKcmyk(29.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(38.69, 51.69, -52.65)
CIE-LCHlch(38.69, 73.78, 314.47°)
OKLaboklab(49.42% 0.1129 -0.1492)
OKLCHoklch(49.42% 0.187 307.1)
XYZxyz(18.0525, 10.4785, 43.1824)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E38B2 #6CB238
analogous
#4138B2 #7E38B2 #B238A9
triadic
#7E38B2 #B27E38 #38B27E
tetradic
#7E38B2 #B24138 #6CB238 #38A9B2
square
#7E38B2 #B24138 #6CB238 #38A9B2
split-complementary
#7E38B2 #A9B238 #38B241
monochromatic
#3C1B55 #5D2983 #7E38B2 #9C5CCC #B88ADA

Accessibility & contrast

On white

6.78
#7E38B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E38B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E38B2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E38B2#FFFFFF#000000##FFFFFF
##7E38B21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#755371
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e38b2;
/* rgb */ color: rgb(126, 56, 178);
/* oklch */ color: oklch(49.4% 0.187 307.1);
Tailwind
colors: {
  custom: {
    50: '#a874ca',
    500: '#7e38b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e38b2;
$custom-light: #a874ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e38b2",
  "rgb": {
    "r": 126,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 274.426,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49418,
    "c": 0.18715,
    "h": 307.1
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#7E38B2
secondary
#9EC581
accent
#DC4C89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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