#7B628E#7B628E

#7B628E is a mid, moderate violet. Relative luminance 0.149; OKLCH L 53.8% C 0.073 H 310.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7B628E
RGBrgb(123, 98, 142)
HSLhsl(274, 18%, 47%)
HSVhsv(274, 31%, 56%)
CMYKcmyk(13.4%, 31%, 0%, 44.3%)
CIE-LABlab(45.50, 18.93, -20.46)
CIE-LCHlch(45.50, 27.88, 312.78°)
OKLaboklab(53.76% 0.047 -0.0561)
OKLCHoklch(53.76% 0.073 310)
XYZxyz(17.4177, 14.8995, 27.5443)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B628E #758E62
analogous
#65628E #7B628E #8E628B
triadic
#7B628E #8E7B62 #628E7B
tetradic
#7B628E #8E6562 #758E62 #628B8E
square
#7B628E #8E6562 #758E62 #628B8E
split-complementary
#7B628E #8B8E62 #628E65
monochromatic
#3C3046 #5C496A #7B628E #9983AA #B7A8C3

Accessibility & contrast

On white

5.28
#7B628E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7B628E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B628E
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B628E#FFFFFF#000000##FFFFFF
##7B628E1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A6A90
Deuteranopia (green-blind)
#606C8D
Tritanopia (blue-blind)
#796872
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b628e;
/* rgb */ color: rgb(123, 98, 142);
/* oklch */ color: oklch(53.8% 0.073 310.0);
Tailwind
colors: {
  custom: {
    50: '#a18faf',
    500: '#7b628e',
    950: '#000000',
  },
}
SCSS
$custom: #7b628e;
$custom-light: #a18faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b628e",
  "rgb": {
    "r": 123,
    "g": 98,
    "b": 142
  },
  "hsl": {
    "h": 274.091,
    "s": 18.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53758,
    "c": 0.07314,
    "h": 310
  },
  "luminance": 0.14899
}

Semantic roles & 50–950 ramp

primary
#7B628E
secondary
#A4B19A
accent
#BB6D8F
background
#FAF8FA
surface
#F3F0F4
border
#CDCBCE
text
#0F0C10
muted
#7F7D7F

Preview Lab

Preview with #7B628E

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

Preview Lab → · Contrast checker → · Palette generator →

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