#7B5FDF#7B5FDF

#7B5FDF is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.9% C 0.187 H 289.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7B5FDF
RGBrgb(123, 95, 223)
HSLhsl(253, 67%, 62%)
HSVhsv(253, 57%, 87%)
CMYKcmyk(44.8%, 57.4%, 0%, 12.5%)
CIE-LABlab(49.16, 41.95, -61.80)
CIE-LCHlch(49.16, 74.69, 304.17°)
OKLaboklab(57.92% 0.0618 -0.1763)
OKLCHoklch(57.92% 0.187 289.3)
XYZxyz(25.5761, 17.7221, 71.8709)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B5FDF #C3DF5F
analogous
#5F83DF #7B5FDF #BB5FDF
triadic
#7B5FDF #DF7B5F #5FDF7B
tetradic
#7B5FDF #DF5F83 #C3DF5F #5FDFBB
square
#7B5FDF #DF5F83 #C3DF5F #5FDFBB
split-complementary
#7B5FDF #DFBB5F #83DF5F
monochromatic
#3D21A3 #512CD5 #7B5FDF #A592E9 #CFC5F3

Accessibility & contrast

On white

4.62
#7B5FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7B5FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B5FDF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B5FDF#FFFFFF#000000##FFFFFF
##7B5FDF1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#0A72DC
Tritanopia (blue-blind)
#5C7C96
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b5fdf;
/* rgb */ color: rgb(123, 95, 223);
/* oklch */ color: oklch(57.9% 0.187 289.3);
Tailwind
colors: {
  custom: {
    50: '#a88dea',
    500: '#7b5fdf',
    950: '#000000',
  },
}
SCSS
$custom: #7b5fdf;
$custom-light: #a88dea;
$custom-dark: #000000;
JSON
{
  "hex": "#7b5fdf",
  "rgb": {
    "r": 123,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 253.125,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57921,
    "c": 0.1868,
    "h": 289.3
  },
  "luminance": 0.17723
}

Semantic roles & 50–950 ramp

primary
#7B5FDF
secondary
#DAE4B6
accent
#CF17A6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7B5FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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