#7E628D#7E628D

#7E628D is a mid, moderate violet. Relative luminance 0.151; OKLCH L 54.0% C 0.073 H 313.5°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7E628D
RGBrgb(126, 98, 141)
HSLhsl(279, 18%, 47%)
HSVhsv(279, 30%, 55%)
CMYKcmyk(10.6%, 30.5%, 0%, 44.7%)
CIE-LABlab(45.76, 19.73, -19.43)
CIE-LCHlch(45.76, 27.69, 315.44°)
OKLaboklab(54.02% 0.0504 -0.0531)
OKLCHoklch(54.02% 0.073 313.5)
XYZxyz(17.7788, 15.0943, 27.1711)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E628D #718D62
analogous
#69628D #7E628D #8D6287
triadic
#7E628D #8D7E62 #628D7E
tetradic
#7E628D #8D6962 #718D62 #62878D
square
#7E628D #8D6962 #718D62 #62878D
split-complementary
#7E628D #878D62 #628D69
monochromatic
#3D3045 #5E4969 #7E628D #9C83A9 #B9A7C2

Accessibility & contrast

On white

5.23
#7E628D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7E628D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E628D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E628D#FFFFFF#000000##FFFFFF
##7E628D1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6B8F
Deuteranopia (green-blind)
#626D8C
Tritanopia (blue-blind)
#7D6771
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e628d;
/* rgb */ color: rgb(126, 98, 141);
/* oklch */ color: oklch(54.0% 0.073 313.5);
Tailwind
colors: {
  custom: {
    50: '#a48fae',
    500: '#7e628d',
    950: '#000000',
  },
}
SCSS
$custom: #7e628d;
$custom-light: #a48fae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e628d",
  "rgb": {
    "r": 126,
    "g": 98,
    "b": 141
  },
  "hsl": {
    "h": 279.07,
    "s": 17.992,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5402,
    "c": 0.0732,
    "h": 313.5
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#7E628D
secondary
#A2B19A
accent
#BB6D88
background
#FAF8FA
surface
#F4F0F4
border
#CECBCE
text
#0F0C10
muted
#7F7D7F

Preview Lab

Preview with #7E628D

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

Preview Lab → · Contrast checker → · Palette generator →

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