#7E489D#7E489D

#7E489D is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.3% C 0.140 H 311.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7E489D
RGBrgb(126, 72, 157)
HSLhsl(278, 37%, 45%)
HSVhsv(278, 54%, 62%)
CMYKcmyk(19.7%, 54.1%, 0%, 38.4%)
CIE-LABlab(40.42, 38.57, -37.36)
CIE-LCHlch(40.42, 53.70, 315.91°)
OKLaboklab(50.25% 0.0932 -0.1045)
OKLCHoklch(50.25% 0.14 311.7)
XYZxyz(17.0063, 11.5050, 33.2166)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E489D #679D48
analogous
#54489D #7E489D #9D4891
triadic
#7E489D #9D7E48 #489D7E
tetradic
#7E489D #9D5448 #679D48 #48919D
square
#7E489D #9D5448 #679D48 #48919D
split-complementary
#7E489D #919D48 #489D54
monochromatic
#3B2249 #5C3573 #7E489D #9C68BA #B892CD

Accessibility & contrast

On white

6.36
#7E489D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7E489D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E489D
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E489D#FFFFFF#000000##FFFFFF
##7E489D1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA0
Deuteranopia (green-blind)
#43609B
Tritanopia (blue-blind)
#7B566B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e489d;
/* rgb */ color: rgb(126, 72, 157);
/* oklch */ color: oklch(50.3% 0.140 311.7);
Tailwind
colors: {
  custom: {
    50: '#a57dba',
    500: '#7e489d',
    950: '#000000',
  },
}
SCSS
$custom: #7e489d;
$custom-light: #a57dba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e489d",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 157
  },
  "hsl": {
    "h": 278.118,
    "s": 37.118,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50254,
    "c": 0.14,
    "h": 311.7
  },
  "luminance": 0.11505
}

Semantic roles & 50–950 ramp

primary
#7E489D
secondary
#9AB988
accent
#CD5B84
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E489D

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

Preview Lab → · Contrast checker → · Palette generator →

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