#7B5897#7B5897

#7B5897 is a mid, moderate violet. Relative luminance 0.134; OKLCH L 52.3% C 0.104 H 308.8°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7B5897
RGBrgb(123, 88, 151)
HSLhsl(273, 26%, 47%)
HSVhsv(273, 42%, 59%)
CMYKcmyk(18.5%, 41.7%, 0%, 40.8%)
CIE-LABlab(43.40, 27.03, -29.10)
CIE-LCHlch(43.40, 39.72, 312.89°)
OKLaboklab(52.3% 0.0648 -0.0807)
OKLCHoklch(52.3% 0.104 308.8)
XYZxyz(17.2430, 13.4250, 30.9551)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5897 #749758
analogous
#5B5897 #7B5897 #975894
triadic
#7B5897 #977B58 #58977B
tetradic
#7B5897 #975B58 #749758 #589497
square
#7B5897 #975B58 #749758 #589497
split-complementary
#7B5897 #949758 #58975B
monochromatic
#3C2B4A #5C4170 #7B5897 #997AB2 #B7A1C8

Accessibility & contrast

On white

5.70
#7B5897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#7B5897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5897
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5897#FFFFFF#000000##FFFFFF
##7B58971.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6599
Deuteranopia (green-blind)
#536795
Tritanopia (blue-blind)
#776270
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7b5897;
/* rgb */ color: rgb(123, 88, 151);
/* oklch */ color: oklch(52.3% 0.104 308.8);
Tailwind
colors: {
  custom: {
    50: '#a288b6',
    500: '#7b5897',
    950: '#000000',
  },
}
SCSS
$custom: #7b5897;
$custom-light: #a288b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5897",
  "rgb": {
    "r": 123,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 273.333,
    "s": 26.36,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52295,
    "c": 0.10352,
    "h": 308.8
  },
  "luminance": 0.13425
}

Semantic roles & 50–950 ramp

primary
#7B5897
secondary
#A4B695
accent
#C3658F
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7B5897

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

Preview Lab → · Contrast checker → · Palette generator →

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