#7D5FDB#7D5FDB

#7D5FDB is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.8% C 0.182 H 290.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7D5FDB
RGBrgb(125, 95, 219)
HSLhsl(255, 63%, 62%)
HSVhsv(255, 57%, 86%)
CMYKcmyk(42.9%, 56.6%, 0%, 14.1%)
CIE-LABlab(49.08, 41.26, -59.65)
CIE-LCHlch(49.08, 72.53, 304.67°)
OKLaboklab(57.82% 0.0644 -0.1699)
OKLCHoklch(57.82% 0.182 290.7)
XYZxyz(25.3323, 17.6580, 69.0777)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5FDB #BDDB5F
analogous
#5F7FDB #7D5FDB #BB5FDB
triadic
#7D5FDB #DB7D5F #5FDB7D
tetradic
#7D5FDB #DB5F7F #BDDB5F #5FDBBB
square
#7D5FDB #DB5F7F #BDDB5F #5FDBBB
split-complementary
#7D5FDB #DBBB5F #7FDB5F
monochromatic
#41239C #552ECE #7D5FDB #A691E6 #CEC3F1

Accessibility & contrast

On white

4.63
#7D5FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7D5FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5FDB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5FDB#FFFFFF#000000##FFFFFF
##7D5FDB1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1377DF
Deuteranopia (green-blind)
#1D72D8
Tritanopia (blue-blind)
#627A94
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d5fdb;
/* rgb */ color: rgb(125, 95, 219);
/* oklch */ color: oklch(57.8% 0.182 290.7);
Tailwind
colors: {
  custom: {
    50: '#a88de7',
    500: '#7d5fdb',
    950: '#000000',
  },
}
SCSS
$custom: #7d5fdb;
$custom-light: #a88de7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5fdb",
  "rgb": {
    "r": 125,
    "g": 95,
    "b": 219
  },
  "hsl": {
    "h": 254.516,
    "s": 63.265,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57823,
    "c": 0.18168,
    "h": 290.7
  },
  "luminance": 0.17659
}

Semantic roles & 50–950 ramp

primary
#7D5FDB
secondary
#D7E2B4
accent
#CB1AA0
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7D5FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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