#7E4BAF#7E4BAF

#7E4BAF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.8% C 0.157 H 305.1°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7E4BAF
RGBrgb(126, 75, 175)
HSLhsl(271, 40%, 49%)
HSVhsv(271, 57%, 69%)
CMYKcmyk(28%, 57.1%, 0%, 31.4%)
CIE-LABlab(42.10, 41.20, -45.40)
CIE-LCHlch(42.10, 61.30, 312.22°)
OKLaboklab(51.83% 0.09 -0.128)
OKLCHoklch(51.83% 0.157 305.1)
XYZxyz(18.8565, 12.5630, 41.9806)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BAF #7CAF4B
analogous
#4C4BAF #7E4BAF #AF4BAE
triadic
#7E4BAF #AF7E4B #4BAF7E
tetradic
#7E4BAF #AF4C4B #7CAF4B #4BAEAF
square
#7E4BAF #AF4C4B #7CAF4B #4BAEAF
split-complementary
#7E4BAF #AEAF4B #4BAF4C
monochromatic
#402659 #5F3984 #7E4BAF #9C74C3 #BB9FD6

Accessibility & contrast

On white

5.98
#7E4BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7E4BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BAF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BAF#FFFFFF#000000##FFFFFF
##7E4BAF1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2462B2
Deuteranopia (green-blind)
#3863AD
Tritanopia (blue-blind)
#765E76
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e4baf;
/* rgb */ color: rgb(126, 75, 175);
/* oklch */ color: oklch(51.8% 0.157 305.1);
Tailwind
colors: {
  custom: {
    50: '#a67fc7',
    500: '#7e4baf',
    950: '#000000',
  },
}
SCSS
$custom: #7e4baf;
$custom-light: #a67fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4baf",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 270.6,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51827,
    "c": 0.1565,
    "h": 305.1
  },
  "luminance": 0.12563
}

Semantic roles & 50–950 ramp

primary
#7E4BAF
secondary
#AAC293
accent
#D05893
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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