#7C5FB2#7C5FB2

#7C5FB2 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.1% C 0.128 H 298.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7C5FB2
RGBrgb(124, 95, 178)
HSLhsl(261, 35%, 54%)
HSVhsv(261, 47%, 70%)
CMYKcmyk(30.3%, 46.6%, 0%, 30.2%)
CIE-LABlab(46.56, 29.91, -40.08)
CIE-LCHlch(46.56, 50.01, 306.74°)
OKLaboklab(55.14% 0.0604 -0.1126)
OKLCHoklch(55.14% 0.128 298.2)
XYZxyz(20.4384, 15.6837, 44.0613)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5FB2 #95B25F
analogous
#5F6BB2 #7C5FB2 #A55FB2
triadic
#7C5FB2 #B27C5F #5FB27C
tetradic
#7C5FB2 #B25F6B #95B25F #5FB2A5
square
#7C5FB2 #B25F6B #95B25F #5FB2A5
split-complementary
#7C5FB2 #B2A55F #6BB25F
monochromatic
#433166 #5F458F #7C5FB2 #9E88C6 #C0B2DA

Accessibility & contrast

On white

5.08
#7C5FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7C5FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5FB2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5FB2#FFFFFF#000000##FFFFFF
##7C5FB21.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456EB5
Deuteranopia (green-blind)
#4B6EB0
Tritanopia (blue-blind)
#716E80
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7c5fb2;
/* rgb */ color: rgb(124, 95, 178);
/* oklch */ color: oklch(55.1% 0.128 298.2);
Tailwind
colors: {
  custom: {
    50: '#a48dc9',
    500: '#7c5fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7c5fb2;
$custom-light: #a48dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5fb2",
  "rgb": {
    "r": 124,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 260.964,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55143,
    "c": 0.12775,
    "h": 298.2
  },
  "luminance": 0.15684
}

Semantic roles & 50–950 ramp

primary
#7C5FB2
secondary
#BCC8A5
accent
#CB5DA5
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7C5FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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