#7F5BB2#7F5BB2

#7F5BB2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.7% C 0.135 H 301.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7F5BB2
RGBrgb(127, 91, 178)
HSLhsl(265, 36%, 53%)
HSVhsv(265, 49%, 70%)
CMYKcmyk(28.7%, 48.9%, 0%, 30.2%)
CIE-LABlab(45.92, 33.10, -41.07)
CIE-LCHlch(45.92, 52.74, 308.87°)
OKLaboklab(54.74% 0.0698 -0.1154)
OKLCHoklch(54.74% 0.135 301.2)
XYZxyz(20.5275, 15.2085, 43.9649)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5BB2 #8EB25B
analogous
#5B62B2 #7F5BB2 #AB5BB2
triadic
#7F5BB2 #B27F5B #5BB27F
tetradic
#7F5BB2 #B25B62 #8EB25B #5BB2AB
square
#7F5BB2 #B25B62 #8EB25B #5BB2AB
split-complementary
#7F5BB2 #B2AB5B #62B25B
monochromatic
#452F64 #61428D #7F5BB2 #A085C6 #C0AED9

Accessibility & contrast

On white

5.20
#7F5BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7F5BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5BB2
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5BB2#FFFFFF#000000##FFFFFF
##7F5BB21.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#756B7E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f5bb2;
/* rgb */ color: rgb(127, 91, 178);
/* oklch */ color: oklch(54.7% 0.135 301.2);
Tailwind
colors: {
  custom: {
    50: '#a68ac9',
    500: '#7f5bb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f5bb2;
$custom-light: #a68ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5bb2",
  "rgb": {
    "r": 127,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 264.828,
    "s": 36.1,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54737,
    "c": 0.13484,
    "h": 301.2
  },
  "luminance": 0.15209
}

Semantic roles & 50–950 ramp

primary
#7F5BB2
secondary
#B8C7A2
accent
#CC5C9E
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #7F5BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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