#7F4BDB#7F4BDB

#7F4BDB is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.0% C 0.208 H 295.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F4BDB
RGBrgb(127, 75, 219)
HSLhsl(262, 67%, 58%)
HSVhsv(262, 66%, 86%)
CMYKcmyk(42%, 65.8%, 0%, 14.1%)
CIE-LABlab(45.16, 52.62, -65.97)
CIE-LCHlch(45.16, 84.39, 308.58°)
OKLaboklab(55.02% 0.089 -0.1884)
OKLCHoklch(55.02% 0.208 295.3)
XYZxyz(24.0513, 14.6581, 68.5662)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F4BDB #A7DB4B
analogous
#4B5FDB #7F4BDB #C74BDB
triadic
#7F4BDB #DB7F4B #4BDB7F
tetradic
#7F4BDB #DB4B5F #A7DB4B #4BDBC7
square
#7F4BDB #DB4B5F #A7DB4B #4BDBC7
split-complementary
#7F4BDB #DBC74B #5FDB4B
monochromatic
#461D8F #5F27C2 #7F4BDB #A37EE5 #C8B1EF

Accessibility & contrast

On white

5.34
#7F4BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7F4BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F4BDB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F4BDB#FFFFFF#000000##FFFFFF
##7F4BDB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDF
Deuteranopia (green-blind)
#0069D8
Tritanopia (blue-blind)
#676D8D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7f4bdb;
/* rgb */ color: rgb(127, 75, 219);
/* oklch */ color: oklch(55.0% 0.208 295.3);
Tailwind
colors: {
  custom: {
    50: '#ab80e7',
    500: '#7f4bdb',
    950: '#000000',
  },
}
SCSS
$custom: #7f4bdb;
$custom-light: #ab80e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f4bdb",
  "rgb": {
    "r": 127,
    "g": 75,
    "b": 219
  },
  "hsl": {
    "h": 261.667,
    "s": 66.667,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55017,
    "c": 0.20839,
    "h": 295.3
  },
  "luminance": 0.14659
}

Semantic roles & 50–950 ramp

primary
#7F4BDB
secondary
#C9DEA4
accent
#EA3EAC
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7F4BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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