#7E489F#7E489F

#7E489F is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.4% C 0.142 H 311.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7E489F
RGBrgb(126, 72, 159)
HSLhsl(277, 38%, 45%)
HSVhsv(277, 55%, 62%)
CMYKcmyk(20.8%, 54.7%, 0%, 37.6%)
CIE-LABlab(40.53, 39.03, -38.38)
CIE-LCHlch(40.53, 54.74, 315.48°)
OKLaboklab(50.37% 0.0933 -0.1075)
OKLCHoklch(50.37% 0.142 311)
XYZxyz(17.1784, 11.5739, 34.1232)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E489F #699F48
analogous
#52489F #7E489F #9F4894
triadic
#7E489F #9F7E48 #489F7E
tetradic
#7E489F #9F5248 #699F48 #48949F
square
#7E489F #9F5248 #699F48 #48949F
split-complementary
#7E489F #949F48 #489F52
monochromatic
#3B224B #5D3575 #7E489F #9C69BB #B893CE

Accessibility & contrast

On white

6.34
#7E489F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7E489F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E489F
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E489F#FFFFFF#000000##FFFFFF
##7E489F1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5DA2
Deuteranopia (green-blind)
#41619D
Tritanopia (blue-blind)
#7A576C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e489f;
/* rgb */ color: rgb(126, 72, 159);
/* oklch */ color: oklch(50.4% 0.142 311.0);
Tailwind
colors: {
  custom: {
    50: '#a67dbc',
    500: '#7e489f',
    950: '#000000',
  },
}
SCSS
$custom: #7e489f;
$custom-light: #a67dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e489f",
  "rgb": {
    "r": 126,
    "g": 72,
    "b": 159
  },
  "hsl": {
    "h": 277.241,
    "s": 37.662,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50373,
    "c": 0.14235,
    "h": 311
  },
  "luminance": 0.11574
}

Semantic roles & 50–950 ramp

primary
#7E489F
secondary
#9BBA89
accent
#CE5A86
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E489F

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

Preview Lab → · Contrast checker → · Palette generator →

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